1.
What will be the output of the following code?
console.log(a); let a = 10;
2.
In which scope are let variables hoisted?
3.
What will be the output of the following code?
{ console.log(b); let b = 20; }
4.
What is the "temporal dead zone"?
5.
What happens when you try to re-declare a let variable in the same scope?
6.
What will be the output of the following code?
let c = 5; { let c = 10; console.log(c); }
7.
Which of the following is true about let declarations?
8.
What will be the output of the following code?
let d; console.log(d); d = 15;
9.
Which statement about let and const is correct?
10.
What will be the output of the following code?
let e = 25; function test() { console.log(e); let e = 30; } test();