Can someone please explain how every line of this code works?... Saw it during a JavaScript challenge | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 1

Can someone please explain how every line of this code works?... Saw it during a JavaScript challenge

https://code.sololearn.com/WIWrs63bakWL/?ref=app

11th Mar 2020, 11:31 AM
Michael Achua
Michael Achua - avatar
2 Respostas
+ 4
isAsync = true because the program ends faster then promise executes callback. Check out the sequence here. https://code.sololearn.com/WzWLcf5ycZaG/?ref=app
11th Mar 2020, 11:40 AM
CalviÕ²
CalviÕ² - avatar
0
Thanks a lot... I had no knowledge about promises in JavaScript
11th Mar 2020, 1:33 PM
Michael Achua
Michael Achua - avatar