Module 2: Variables, Data Types, Type Casting, and Comments
Quiz: Quiz 2: Variables and Data Types
1. Which keyword is used to declare a variable in modern JavaScript that can be reassigned?
2. What is the data type of the value `true` in JavaScript?
3. Which of the following is a valid JavaScript variable name?
4. What is the result of `Number("10.5")`?
5. How do you write a single-line comment in JavaScript?
6. What will `typeof null` return in JavaScript?
7. Which of these is an example of a complex data type in JavaScript?
8. If `let x = 10;` and then `const x = 20;` is written in the same scope, what happens?
9. What is the value of `myVar` after this code: `let myVar;`?