In this blog, we are going to learn about a few interesting questions related to set timeout and closure. So let's start directly with an example. function x(){ var i = 1; setTimeout(function(){ console.log(i); },1000) } x(); From the abov...

Markdown supported Β· ββ΅ to post
Easy understanding in this blog
Randy willson
Frontend software developer
Well done with explanation βοΈ