Search⌘ K
AI Features

Exercise on Tail Call Optimization & other Function Features

Explore ES6 function enhancements by implementing a stack, optimizing Fibonacci with tail call optimization, creating non-recursive solutions, and understanding new.target in class syntax. This lesson guides you through practical exercises to master ES6 function features.

Exercise 1:

Implement a stack in ES6. In addition to a constructor, it should have a push(), pop() ...