How to Delay a loop in javascript synchronously

preview_player
Показать описание
Hello Guys,
There i found an efficient way to delay a loop and no more need of recursions.

Promise function does it all.

Thank you for watching.
Happy Coding :)
Рекомендации по теме
Комментарии
Автор

This is exactly what I have been looking for--fucking thank you bro. You literally just taught me promises within seconds.

motionsundries
Автор

I was exactly looking for something like that !!! Thank you man!

alexeponon
Автор

I'm a python advanced. In python, just make a silly loop and add "time.sleep(s)" at any part of the loop. And I'm going to my third day, studying HOW the hell, javascript pauses in loops!

anyways, nice tutorial; after I type it all down and tried, I got. "await is only valid in async functions and the top level bodies of modules" error.

seriously, JS community? what kind of bad-joke is that??? shell waits, python waits, c++ waits... why JS has to run all at once???

aceofspades
Автор

why are you adding a million blank lines.

beaubreard
join shbcf.ru