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.
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
Enabled in this fork
luckily I had some experience in backend before attempting this stupid kata
This comment is hidden because it contains spoiler information about the solution
Loading more items...