1.
Which keyword is used to declare a variable in JavaScript?
2.
What is the correct syntax for declaring a variable in JavaScript?
3.
Which of the following is a valid variable name in JavaScript?
4.
What will be the output of the following code?
var x = 5; var y = 6; var z = x + y;
5.
Which of the following is true about 'const' variables in JavaScript?
6.
Which keyword should be used to declare a block-scoped variable?
7.
What will be the output of the following code?
let x; console.log(x);
8.
Can variables declared with 'var' be redeclared in the same scope?
9.
Which of the following is NOT a valid variable name in JavaScript?
10.
What is hoisting in JavaScript?