11.
What will happen if you declare a variable without 'var', 'let', or 'const'?
12.
What is the scope of a variable declared with 'let' inside a loop?
13.
Which of the following statements is true about 'const'?
14.
What will be the output of the following code: if (true) { let b = 60; } console.log(b);
15.
Can 'const' be used to declare an array or object?
16.
What will be the output of the following code: let c = 70; { let c = 80; console.log(c); } console.log(c);
17.
Which keyword is used for declaring variables that should not change?
18.
What will be the output of the following code: const d = 90; d = 100; console.log(d);
19.
How does 'let' differ from 'var' in terms of scope?
20.
What will be the output of the following code: var e = 110; if (true) { var e = 120; } console.log(e);