Algorithms and Data Structures · Junior · Question 22 of 75

Where does the JavaScript runtime itself use a stack?

Explanation

Each call pushes a frame with its local variables and return address; return pops it. That's why deep or infinite recursion ends with "Maximum call stack size exceeded".

Further reading

Problem with a question

Algorithms and Data Structures · Junior · question 22

Test yourself

Take the Algorithms and Data Structures · Junior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz