Glossary term

What is call stack? Meaning for developers

In JavaScript Core

The stack of execution contexts. The one on top is running; a function call pushes a new one, return pops it. Also called the execution context stack, program stack or runtime stack.

Learn it properly · JavaScript CoreLesson 2: The Call StackJavaScript can only ever do one thing at a time. This is the structure that decides exactly what runs right now, what's paused and waiting its turn, and what happens the moment a function calls itself one time too many.

All JavaScript Core terms

In DSA

The list of function calls that have started but not finished. Each call goes on top. When it returns, it is removed.

Learn it properly · DSALesson 14: Recursion BasicsA function that calls itself, a base case that stops it, and the call stack underneath.

All DSA terms

Related terms

← All glossary terms, A to Z