+ 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 Respuestas
+ 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