Tad bit late on this, but hopefully helpful for future users:
The way this function is written is in the arrow function form but it's ultimately the exact same thing as doing the regular function declaration form that you wrote. Just returns 1 line instead and makes the code look more clean.
Can the parameter in the guess method be changed to something other than n? I was confused as to what was being input there at first
what the hell
Rejecting as superseded by a fork with updated description.
Solution sharing != kata suggestion.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Approved by someone, although the test suite needs some cleaning to follow DRY principle with useful debugging messages upon failure :-)
Corrected Here
Tad bit late on this, but hopefully helpful for future users:
The way this function is written is in the arrow function form but it's ultimately the exact same thing as doing the regular function declaration form that you wrote. Just returns 1 line instead and makes the code look more clean.
Nice stairs
added sample tests
Enabled in this fork
I passed 3 first tests but on the random tests i have this:
expected undefined to equal 49
Enabled in this fork
Fixed in this fork
Loading more items...