11.
What is the output of the following code snippet?
12.
How does hoisting differ between let and var declarations in JavaScript?
13.
What is the behavior of accessing a var variable within a block before its declaration in JavaScript?
14.
What happens if you declare a const variable with the same name as an existing variable in JavaScript?
15.
How does hoisting affect variable shadowing in JavaScript?
16.
What is the behavior of accessing a const variable before its declaration in a nested block in JavaScript?
17.
How can you ensure that a const variable is initialized before use in JavaScript?
18.
What is the purpose of the Temporal Dead Zone (TDZ) in JavaScript?
19.
How does hoisting affect arrow functions in JavaScript?
20.
What is the behavior of accessing a const variable within a function before its declaration in JavaScript?