Quiz on JavaScript Variables



1. What are the three ways to declare a variable in JavaScript?
2. Which keyword declares a variable that cannot be reassigned?
3. What will happen if you declare a variable without using var, let, or const?
4. What is the scope of a variable declared with 'let'?
5. Can you redeclare a variable using 'let' in the same scope?

Advertisements