1.
What is hoisting in JavaScript?
2.
Which keyword allows hoisting of variables in JavaScript?
3.
What happens if you access a var variable before its declaration in JavaScript?
4.
What is the behavior of accessing a let variable before its declaration in JavaScript?
5.
How does hoisting affect const declarations in JavaScript?
6.
What is the result of the following code snippet?
7.
How can you avoid issues related to hoisting and TDZ in JavaScript?
8.
What happens if you try to reassign a const variable in JavaScript?
9.
Which of the following is true about const variables in JavaScript?
10.
How does hoisting affect function declarations in JavaScript?