I've heard that accessing let and const values before they are initialized can cause a ReferenceError because of something called the temporal dead zone. What
When inspecting scopes of a function in the DevTools console I noticed a "script" scope. After a bit of research it seems to be created for let and const variab
I have understood why the output of this code should be 3 3 3. for (var i = 0; i < 3; i++) { setTimeout(() => console.log(i), 1); } I am not a