0
Some JS Questions and CSS
- How do I add a “wait” in my code. - How do I make it so div elements have no space between each other and the sides of the screen. (So they take up the whole area.)
3 Respuestas
+ 3
In modern JavaScript, we could use generator functions to create outputs with time delay.
https://code.sololearn.com/Wyx4w0yUd6o3/?ref=app
+ 1
Note that setTimeout running on its own thread, the rest of the code will not actually wait for it.
0
1. setTimeout ( https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope/setTimeout )
2. margin:0;