Recursion Exercises
Complete the functions written in the recursion.js
file.
You can automatically test your progress by running npm install
inside this folder to install the automated testing libraries, then run npm test
to see if your functions pass the test cases. You will have to add the necessary parameters to these functions so you can reference their usage inside the test file to see how the tests expect the function to be called.
Note: The myGA lesson links out to a CodePen with a recursion exercise that's exactly the same as the one in the
recursion.js
file. When you take the myGA lesson, try to get as far as you can, knowing that we'll review the exercise in class.
Optional Challenge
The floodIt challenge asks you to write a recursive function in order to complete a jQuery-based floodIt game. You only need to fill in one function in app.js
in order to complete the game functionality.