Sign in
Log inSign up
Chhakuli Zingare

110 likes

1.6K reads

21 comments

Rishu srivastava
Rishu srivastava
Sep 13, 2022

Amazing

2
Ankit Kumar
Ankit Kumar
Sep 12, 2022

馃憤

1
Shubhdeep Chhabra
Shubhdeep Chhabra
Sep 13, 2022

This is worth reading馃殌馃殌.

But there is also another type of queue along with Event Queue Microtask queue / Priority queue.

1
Nagappan Subramanian
Nagappan Subramanian
Sep 15, 2022

Simple good start up article for javascript developer

1
Santosh more
Santosh more
Sep 16, 2022

keep writing

1
1 reply
Chhakuli Zingare
Chhakuli Zingare
Author
Sep 16, 2022

Thank you and keep reading..

Abhishek Sharma
Abhishek Sharma
Sep 12, 2022

Awesome 馃槑

1 reply
Chhakuli Zingare
Chhakuli Zingare
Author
Sep 12, 2022

Thanks and keep reading 馃グ馃グ馃グ

VINOD-KUMAR-M
VINOD-KUMAR-M
Sep 12, 2022

You're nailed it down the event loops and the best explanation. While I'm reading your articles, those articles are directly transferred to my brain. keep write and never give up. You're text animations also awesome!

1 reply
Chhakuli Zingare
Chhakuli Zingare
Author
Sep 13, 2022

ohhh my goodness..thank you so muchhhh馃グ Happy learning!

Manik Dixit
Manik Dixit
Sep 12, 2022

More power to u !!! 馃槉馃敟馃敟馃敟

1 reply
Chhakuli Zingare
Chhakuli Zingare
Author
Sep 13, 2022

Thank you batchmate..馃グ

1
Wojtek X
Wojtek X
Sep 12, 2022

Just awesome 馃榾 keep writing and learning 鉁岋笍

1 reply
Chhakuli Zingare
Chhakuli Zingare
Author
Sep 13, 2022

Thank you馃槉

Manuel Serafin Bugarin
Manuel Serafin Bugarin
Sep 13, 2022

Great explanation! Thank you for this!

1 reply
Chhakuli Zingare
Chhakuli Zingare
Author
Sep 13, 2022

Really happy...馃槉stay tuned for more..

Carlonn Rivers
Carlonn Rivers
Sep 13, 2022

I have understood the generals of this for quite a while, but could not explain it. Now I better can!

I wonder if this is why you cannot use a while loop to block the thread while waiting for an asynchronous task to be completed. The browser delegates that task to another thread, and when that promise is resolved, it will place the response/callback in the event queue. However, if a while loop is ongoing (like while (true)) then it will keep iterating forever, placing its iterations into the call stack continuously.

Thus, the call stack will never be empty for the promise in the event loop to reach the call stack and proceed with the code.

Is my thought process correct here?

Anirudh Jwala
Anirudh Jwala
Sep 13, 2022

Fantastic! 馃憤馃敟

1 reply
Chhakuli Zingare
Chhakuli Zingare
Author
Sep 14, 2022

Thank you鉂も潳鉂も潳...and Thank you for putting so much effort for us in the Bootcamp.

Kumar Shubham
Kumar Shubham
Sep 14, 2022

This is just a great and super simplified explanation.

1 reply
Chhakuli Zingare
Chhakuli Zingare
Author
Sep 14, 2022

thank you