I tried to execute the code below in Firefox V30.0 Scratchpad:
function do_something() { console.log(foo);
The expected behavior is that my program should call the Error link, because I access the let variable before the declaration. But, I do not get the expected behavior, the program was executed, and the result is lower
undefined
Can you explain to me why this is so?
Azeez source share