Understanding of Bad part of callback is super important to learn Promise in next lecture. 💡 JavaScript is synchronous, single threaded language. It can Just do one thing at a time, it has just one ...
We expect JS to wait 3 sec, print 1 and then go down and print the string. But JS prints string immediately, waits 3 sec and then prints 1. The function inside setTimeout forms a closure (remembers ...
Some results have been hidden because they may be inaccessible to you
Show inaccessible results