Event Loop

Call Stack

The single place JavaScript runs function calls. It's LIFO: the last function pushed on is the first to finish and pop off. While it has frames on it, nothing else can run.

main() calls greet(), which calls format(). They stack up, then unwind in reverse.

LIFO — last in, first out

Tap the example to replay it · press and hold to slow it down

One of 40 cards in javascript flashcards. Browse every card.