DEV Community

loading...

Discussion on: What’s your favorite JS interview question?

jakebman profile image
jakebman

Yup, you're correct. The callbacks are registered very close to each other - they're all queued up to run at basically the same time.

Thread Thread
jakebman profile image
jakebman

Akash - this is the local variable I was trying to describe: jsfiddle.net/e7gyc5ts/1/ (I needed an IIFE to solve a problem that is better solved by let)

Thread Thread
ufocoder profile image
Thread Thread
bharath_bheemireddy profile image