1.
What is block scope in JavaScript?
2.
Which keyword introduces block-scoped variables in JavaScript?
3.
What is the main difference between var and let in terms of scope?
4.
What happens if you try to access a block-scoped variable outside its block?
5.
Which of the following correctly defines a block scope?
6.
How does block scope help prevent variable hoisting issues?
7.
What is the output of console.log(i); outside the loop if let i = 10; is declared inside a loop?
8.
What happens when you declare a constant with const inside a block and try to reassign it?
9.
How does block scope affect the visibility of variables in nested blocks?
10.
What is the purpose of block scope in JavaScript?