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

One of 40 cards in the JavaScript deck. Browse every card.