Tagged “interview-questions”
-
TIL setTimeout, blocks, closure interview-questions stack-overflow closure
setTimeout is creating a closure function. More importantly, vars get yoinked by closure, where lets create their own block scope.
See all tags.