Build a Menu with Recursive Functions
The goal of our exercise today is to build a menu, complete with sub-menu, all based off one function that runs recursively on an array.
The goal of our exercise today is to build a menu, complete with sub-menu, all based off one function that runs recursively on an array.
This quick tip shows an easy trick to simplify the job of looping through an array in which something different happens to the first element.