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.)

25th Nov 2018, 1:48 AM
Yosharu
Yosharu - avatar
3 Answers
+ 3
In modern JavaScript, we could use generator functions to create outputs with time delay. https://code.sololearn.com/Wyx4w0yUd6o3/?ref=app
25th Nov 2018, 4:30 AM
CalviŐ˛
CalviŐ˛ - avatar
+ 1
Note that setTimeout running on its own thread, the rest of the code will not actually wait for it.
25th Nov 2018, 2:07 AM
Taste
Taste - avatar
25th Nov 2018, 1:56 AM
Cyrus
Cyrus - avatar