Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
You can't just return
n
. You need to return a function. Look into that and you'll eventually come up with a correct approach.hey guys I'm just starting my journey JS and having a challenge with this kata. From the examples given in the description it looks there should be a way to access the existing value of the variable we want to increase with the add() function. I figured the first time the function to called by a variable without a value i could just 'return n'. but that doesn't help with a variable with an existing value. can someone tell me a better approach?