Algorithms and Data Structures · Senior · Question 65 of 75

Which statement about recursion and the call stack in JavaScript is correct?

Explanation

ES2015 specified proper tail calls in strict mode, but V8 and SpiderMonkey don't ship them. So in Chrome and Node.js a tail-recursive function still uses a frame per call and can overflow.

Further reading

Problem with a question

Algorithms and Data Structures · Senior · question 65

Test yourself

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

Take this quiz