(Q-52) Most asked JavaScript Output interview questions and answers #javascript #interview

preview_player
Показать описание
Most asked JavaScript Output Interview Questions and Answers. Mostly asked in the Frontend interviews! This playlist contains the logical javascript output question and answers with reason.

#javascriptinterviewquestions #frontendinterviewquestions #frontend #interview #javascript #react #reactnative #reactjs #most #asked #questions #answers #arrays #strings #objects #output #javascriptplaylist #playlist #interviewplaylist #preparation #startups #unicorns #FANG

YouTube: RowdyCoders
Рекомендации по теме
Комментарии
Автор

Time out function sits in call back queue once the normal code execution finishes then event loop pushes the settimeout code in stack.

manishchauhan
Автор

What ever asynchronous code we wrote it will push into side stack and main code will be there into the main stack. So when main stack completed execution even loop goes towards sidestack and like in this time is 0 seconds so it will push the code into the main stack and the main stack complete there task. Thats why setTimeOut console.log is excuted at last.

nawazthezaifre
Автор

I think what’s going on is that it set timeout goes in event loop

indian-shorts