Posts by Shadowox • 11 points
1 post
-
1
votes3
answers757
viewsA: Is there a command or function in Javascript that controls the screen update before the loop ends?
Here is an example of loading using setInterval. The setInterval expects as the first parameter a function that will be executed asynchronously at each time interval. let perc = 0; let id = null;…