What data type is "hello"?
(number, boolean, string, undefined)
string
What will this print?
let x = 10;
if (x>5) {
console.log ("Yes");
}
Yes
How many times does this loop run?
3
What keyword defines a function?
(def, function, func, create)
function
What is the first index in an array?
0
What data type is "true"?
(string, boolean, number, object)
boolean
Which operator should be used to compare values?
==
What will this print?
0, 1
What does return do?
Sends value back
What prints?
2
Which keyword is used to declare a variable?
(var, let, make, define)
let
What will this print?
let x = 2;
if (x > 5) {
console.log("A");
} else {
console.log("B");
}
B
Which loop runs while a condition is true?
(for, repeat, while, loop)
while
What is printed?
5
What does this do?
makes uppercase
What data type is 3.5 in JavaScript?
(integer, float, number, decimal)
number
What is wrong with this code?
Should use ===
What part updates the loop variable?
i ++
What are a and b called?
(arguments, variables, parameters, inputs)
parameters
What prints?
h
What is wrong with this variable name?
let 2name = "Alex";
cannot start with a number
What keyword is used for another condition?
(else if, repeat, next, continue)
else if
What happens if the loop condition never becomes false?
Infinite loop
What are values passed into a function called?
(parameters, arguments, returns, variables)
arguments
What does this return?
ell