Call Stack

noun

say it: “KAWL stak” /kɔl stæk/

JavaScript's list of the functions running right now: each call goes on top, and comes off again when it returns, like a stack of plates.

What is Call Stack in JavaScript?

Call Stack — The stack of function calls currently being executed.

In a sentence

  • “The debugger's call stack showed that main called scaleRecipe, which called toMilliliters.”
  • “A timer's callback can't run until the call stack is empty.”
  • “The error message listed the call stack, so I could see that checkout called addTax, which called round.”

Level: Master · More JavaScript terms at this level

Updated

In other subjects