What is output for given JavaScript code snippet #2

preview_player
Показать описание
This video we can see what is the output for given JavaScript code snippet.
This kind of questions more frequently asked in the JavaScript interviews.
We have one for loop which going to execute 5 times. Each times there is a settimeout method execution with callback function with zero milliseconds.
Рекомендации по теме
join shbcf.ru