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.
Please note in Go language, the function
Add
should be passed a parameter/argument named not only a type. Avoid confusing beginners..Code placeholder shouldn't be faulty I think
the dis is not clear
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?
C++ Translation.
Approved
python new test framework is required. updated in this fork
can you invest some time in the description,
if you know what is a callback function in JS, you can easily solve this task. Thanks for this kata!
This should be upvoted! Comment section more than often hints toward the solution.
thanks. I solved it.
Not a kata issue, your
add
function is returning a number, not a function as the kata asks.The same method I used! keep it up.
You can't submit a Draft?
How to send a clean -up
You can't submit a Draft.
Loading more items...