1.
What is the scope of a variable declared with let?
2.
Can a let variable be redeclared in the same scope?
3.
What happens if you try to access a let variable before its declaration?
4.
What is the value of a const variable once it is assigned?
5.
Can a const variable be declared without an initial value?
6.
What will be the output of the following code: let x = 10; { let x = 20; } console.log(x);?
7.
Can const be used for objects and arrays?
8.
Which keyword allows block-level scope in ES6?
9.
What error will the following code produce: const PI; PI = 3.14;?
10.
Which keyword should be used for a variable that might be reassigned?