a single-threaded,
non-blocking,
synchronous,
single concurrent,
language
i have a call stack
an event loop
a callback queue
some other apis
and stuff
i have a call stack and a heap
(WTF are all those other things)
one thread == one call stack == one thing at a time
Demo
Demo
Desktop/stacktrace.html
Demo
or code that is slow;
Demo
Demo
Demo
concurrency & the event loop
one thing at a time except not really
Demo ... more ...
defer stuff till stack is clear
return;