Warm-Up: Quiz
Open up this project and answer each question in the corresponding files.
For each of the expressions below, True or False?
10 + 2 === 12
"hello" !== "Hello"
true
6 >= 6
For each of the values below, What's the Data Type?
"Hi"
6 + 4
6 + 4 === "Hi"
prompt("Please enter a number")
9 * 2 / 5 + 8 - 10
false
document.querySelector("#id")
9 > 5
What message will the user see?
let x = 9; if (x >= 9) { x = 4; } else { x = 9; } alert(x);
What's wrong with this function definition?
doSomething() { alert("doing something"); }
In HTML, how would you create a button that executes a function named
sayColor
when clicked?