JavaScript: Behind the scene
Presented By: Shubham Chaurasia
JavaScript is a
Single threaded
Non blocking
Asynchronous
Concurrent
language.
JavaScript have a
Call Stack,
an Event Loop,
a Callback queue (Message Queue),
some Other Api’s and
stuff.
Who executes JavaScript code ?
So, v8 do you have a
Call Stack,
an Event Loop,
a Callback queue (Message Queue),
some Other Api’s and
stuff.
I have a
Call Stack
And a Heap
WTF are those other things?
(Event Loop, Callback queue and Web API’s)
Single threaded
means
One Call Stack
One thread == one call stack == one thing at a time.
Blowing the stack!
Blocking
What happens when things are slow?
The Solution?
Asynchronous Callbacks
Here is the function.
Call me later maybe?
Asynchronous Callbacks and Call Stack
Concurrency and Event Loop
One thing at a time. Not Really
Javascript: Behind the scenes.pdf
Javascript: Behind the scenes.pdf

Javascript: Behind the scenes.pdf