JavaScript Developer — Hard
Key points
- Tail call optimization reuses the current stack frame for recursive calls.
- It prevents stack overflow by not adding new frames for each recursive call.
- Enabled in ES6 strict mode for functions with specific return statement structure.
Ready to go further?
Related questions
