Reputation: 339
Try running this particular piece of javascript code in VS Code's debugger mode.
(async()=>{
let t = 1;
console.log(t);
for(let i =0 ; i<99999999; i++) {
continue;
}
debugger;
})();
At the debugger breakpoint, it says that the 't' is undefined
Any idea why this happens?
Upvotes: 2
Views: 469