Async Javascript Part I - Javascript event loop, stack & queue

preview_player
Показать описание
Async Javascript tutorial - In this discussion about asynchronous Javscript we dive into the Javascript runtime to take a closer look at the Javascript event loop, call stack and message queue with some theory and code examples.

Watch Part II of this video series:
Рекомендации по теме
Комментарии
Автор

"So when the Javascript runtime encounters an asynchronous function (ex. setTimeout()) in the call stack,
it actually returns immediately via an implicit returns and the asynchronous process continues in the Browser API
the callback is then registered in an event table and subsequently added to the message queue
Once the call stack is empty, then the event loop will grab that callback out of the message queue and add it to the call stack to run it"

- THANK YOU VERY MUCH FOR THIS

johnkernelle
Автор

My goodness...this video is worth billions of likes

BcomingHIM
Автор

your tutorials are treats to watch, I think you are good at teaching, good graphics too

woshikakadong
Автор

Primitive types like Var are stored in Stack, not heap. You can see the var in the call stack too. Heap stores reference types and they are called reference types coz they need a reference to be identified (an address) because they are in heap and that's not ordered, unlike the stack.

pn
Автор

why there are no comments, u need more subs, subscribed !!

ognlmtb
Автор

I finally get it. Really helpful, subbed

dima
Автор

I think illustrate videos are the best ...Thanks friend!

thiago
Автор

Excellent!
Let say i want to make ajax call, i dont know how long will it takes. In this case how can i use SetTimeOut function in this case?

johnnguyen
Автор

Always remember we must repent of our sins (sin is transgression The Law Of Yahuah The Father in Heaven. The Law are The Books: Genesis, Exodus, Leviticus, Numbers, & Deuteronomy). We must repent of our sins and Have Belief On Yahusha The Messiah. HE Died and Rose three days later so that we can be forgiven of our sins!

Come to HIM🙂🙂🙂🙂🙂🙂🙂

ReyBanYAHUAH
visit shbcf.ru