+ 4
Is there something I can use instead of all those setTimeouts from Javascript line 76 and below?
3 Respuestas
+ 1
The way you did is called callback hell, it's a bad coding practice, use Promise or async/await to get rid of callback hell.
+ 1
The promise method
https://code.sololearn.com/WdNcJigBv0pf/?ref=app
+ 1
Better way is to use async/await method
https://code.sololearn.com/WWbf38rSVv37/?ref=app