JS Theory
Strings
Math
Random Stuff
Random Stuff 2
100

Javascript is a programming language used for...?

Web Development

100

What is String concatenation? 

Combine 2 Strings to make one String

100

Write the code to print the sum of 2 + 2 to the console

console.log(2+2)

100

Teacher Walker is from which country?

America

100

Do cows sleep...?

A. Laying down

B. Laying upside down

C. Sitting

D. Standing up

D. Standing up

200

If you code has an error, it will be displayed in the...?

Console

200

Write the code to concatenate the 2 Strings below and print it to the console

"Java"

"Script"

console.log("Java" + "Script")

200

Write the code to print a random number between 0 and 10 to the console

console.log(Math.random() * 10)

200

The tallest building in the world is?

A. Shanghai Tower - Shanghai, China

B. Burj Khalifa - Dubai, United Arab Emirates

C. Merdeka 118 - Kuala Lumpur, Malaysia

D. Ocean Mall - Chumphon, Thailand

B. Burj Khalifa - Dubai, United Arab Emirates

200

Do penguins live in warm weather or cold weather?

Both

300

Write the code to print the number 5 to the console

console.log(5)

300

Write the code to concatenate the 3 Strings below and print it to the console. Make sure to add spaces in between the words and do not change the Strings.

"I"

"Love"

"Pizza"

console.log("I + " " + "Love" + " " + "Pizza")

300

Write the code to print a random whole number (or integer) between 0 and 10 to the console

console.log(Math.floor(Math.random() * 10))

300

What is the largest animal in the world?

Antarctic blue whale

300

What is the only mammal on earth that cannot jump?

Elephants

400

Write the code to print "Pizza is the best" to the console

console.log("Pizza is the best")

400

Write the code to calculate the length of the following String and print it to the console

"We Love Javascript :)"

console.log("We Love Javascript :)".length)
400

Write the code to round the following decimal number up, to the nearest integer, then print it to the console

12.36578

console.log(Math.ceil(12.36578))

400

How many pet rabbits does Teacher Walker have at his home?

0

400

How many legs does a spider have?

8

500

Name the 5 data types in Javascript

Numbers, Strings, Booleans, Undefined, and Null

500

Write the code to test whether the following String starts with the letter "C". Then print the result to the console.

"Chicken Wings"

console.log("Chicken Wings".startsWith("C")
500

Write the code that tests if the following number is an integer. If it is an integer, print "true" to console, if it's a decimal, print "false" to the console

2022

console.log(Number.isInteger(2022))

500

What is the official currency of India?

(what is the money called?)

Indian Rupee

500

What are the 7 colors in the rainbow? 

Violet, indigo, blue, green, yellow, orange and red