Advanced
JavaScript
Q65 / 100
What is tail call optimization (TCO) in JavaScript?
Correct! Well done.
Incorrect.
The correct answer is B) An optimization where the call stack frame is reused for a tail-position function call, preventing stack overflow in deep recursion
B
Correct Answer
An optimization where the call stack frame is reused for a tail-position function call, preventing stack overflow in deep recursion
Explanation
TCO was mandated by ES6 strict mode but only Safari implements it. A tail call is a function call as the last action with no further work after it returns.
Progress
65/100