111 likes
路
1.4K reads
21 comments
Amazing
馃憤
This is worth reading馃殌馃殌.
But there is also another type of queue along with Event Queue Microtask queue / Priority queue.
Simple good start up article for javascript developer
keep writing
Thank you and keep reading..
Awesome 馃槑
Thanks and keep reading 馃グ馃グ馃グ
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!
ohhh my goodness..thank you so muchhhh馃グ Happy learning!
More power to u !!! 馃槉馃敟馃敟馃敟
Thank you batchmate..馃グ
Just awesome 馃榾 keep writing and learning 鉁岋笍
Thank you馃槉
Great explanation! Thank you for this!
Really happy...馃槉stay tuned for more..
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?
Fantastic! 馃憤馃敟
Thank you鉂も潳鉂も潳...and Thank you for putting so much effort for us in the Bootcamp.
This is just a great and super simplified explanation.
thank you