Algorithms and Data Structures · Junior · Question 22 of 75
Where does the JavaScript runtime itself use a stack?
- ✓Correct answer: To keep track of function calls: the call stack
- 2To order network requests before sending them
- 3To store every object created with
new
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".