+ 1
Js Promise.resolve()
Anyone to explain this? Promise.resolve().then(()=> console.log(1) ); setTimeout(()=> console.log(2), 0); console.log(3); //312
1 Réponse
+ 5
Learn about event loop:
https://www.sololearn.com/post/90678/?ref=app
After watching above video, Try this quiz:
https://www.sololearn.com/post/233142/?ref=app
https://code.sololearn.com/WKKkpq0efxai/?ref=app
Learn more about JS Asynchronous (async await, fetch, web scraping) , tutorial series :
https://www.youtube.com/playlist?list=PLkqwj9vc20pX36wThr2A6DZx4MVcJvnhe