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.
And that is why using var is generally considered as a bad practice...
The goal was not to rewrite the code, just make it work. But of course, this one is much clearer than the previous one.
Here's the perfect explanation about reduce: https://javascript.info/array-methods#reduce-reduceright
why 0.9 and not 0.10 ?
I like your solution because it reduces the character count by a lot compared to my solution with the map function.
Can you please explain to me how the 'accumulator + currentNum * currentNum' does what it does?
I have tried to disect it in Javascript but doesn't seem to workout for me.
Thank you for your help!
This comment is hidden because it contains spoiler information about the solution
I know this gets you to pass the test, but I feel like this goes against the spirit of the kata, which was to debug the errors present.
I guess at the end of the day, if it passes the validation, its correct.
This comment is hidden because it contains spoiler information about the solution
Please use spoiler flag, comments are visible from the dashboard.
This comment is hidden because it contains spoiler information about the solution
great answer!
This comment is hidden because it contains spoiler information about the solution
Nice!
with optimal test cases reverse would fail. sort is saver.
great answer ;)
Loading more items...