NSAnd it won't even execute the inner block those three times just because "j" is a var? Ayesha SaharReply·Article·Aug 14, 2022·Simplifying Closures in JavaScript
NSWhat I fail to understand is, even if the console is a closure of setTimeout, how does the value of j become 4 if the condition we set in the for loop is that j <=3?Comment·Article·Aug 14, 2022·Simplifying Closures in JavaScript