You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
1.1 KiB
26 lines
1.1 KiB
console.log("The quote 'There is no exercise better for the heart than reaching down and lifting people up.' by John Holmes teaches us to help one another.\n")
|
|
|
|
console.log("Love is not patronizing and charity isn't about pity, it is about love. Charity and love are the same -- with charity you give love, so don't just give money but reach out your hand instead.\n")
|
|
|
|
let num1 = parseInt("10")
|
|
let num2 = parseFloat("9.8")
|
|
if (num2 !== 10) {
|
|
num2 = 10
|
|
}
|
|
|
|
|
|
console.log(num1)
|
|
console.log(num2)
|
|
console.log("jargon python".includes("on"))
|
|
console.log("I hope this course is not full of jargon.".includes("jargon"))
|
|
console.log(Math.floor(Math.random() * 101))
|
|
console.log(Math.floor(Math.random() * 51) + 50)
|
|
console.log(Math.floor(Math.random() * 257))
|
|
|
|
let str = "JavaScript"
|
|
let randomNumber = Math.floor(Math.random() * str.length)
|
|
let randomCharacter = str[randomNumber]
|
|
console.log(randomCharacter)
|
|
|
|
console.log("1 1 1 1 1\n2 1 2 4 8\n3 1 3 9 27\n4 1 4 16 64\n5 1 5 25 125")
|
|
console.log("You cannot end a sentence with because because because is a conjunction".substring(31,54)) |