What happens when you run this code?
if (true) { var x = 5; const y = 6; let z = 7; } console.log(x + y + z);
It will throw a ReferenceError about y.
ReferenceError
y
It will print 18.
18
It will throw a ReferenceError about x.
x
It will print undefined.
undefined