+ 1

Js Promise.resolve()

Anyone to explain this? Promise.resolve().then(()=> console.log(1) ); setTimeout(()=> console.log(2), 0); console.log(3); //312

8th Jul 2020, 3:56 PM
Prof. Dr. Zoltán Vass
1 Resposta
+ 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
8th Jul 2020, 4:03 PM
Gordon
Gordon - avatar