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
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?
replaced with
your solution now passes; thanks for the coming up with concrete details
can you give an example of such a solution ?
fixed
Approved
this is already raised here as an issue
OCaml translation (author gone)
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,
This comment is hidden because it contains spoiler information about the solution
Loading more items...