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.
This comment is hidden because it contains spoiler information about the solution
Try again. It seems after the Codewars upgrade, when you have your tests wrapped in
describe()
, it doesn't let you print out anything. Quite annoying.while I agree, if you're displaying the result on an scoreboard. the points that caused the change in the rank are useful.
thanks for your feedback!
I deleted validation and added in description there is no need for validation can you check it now please?
Thanks!
There are already two posted solutions in JavaScript, and they are different from mine. Keep trying.
You can post your attempted solution here, and I'll try to help. Just mark it as a spoiler.
Kudos for completing it and thanks for your appreciation :)
And if you are interested, we are having an interesting discussion here about ranking kata, including kata whose difficulty is not only strictly coding-related: any feed or idea is welcome :)
Thanks!
Corrected, thanks! Mark issue as resolved if everything is fine.
Sum is supposed to be a string with code in it so your soluton should atleast be
var Sum = "function(arr){ console.log("whatever"); };
If this solves your problem please mark this issue as resolved, thank you.Could you post your solution and mark it as a spoiler so I can see for myself what is happening?
It seems you may be using the old version of the code, if you click reset or change your start code to...
var Sum = 'sum = (function(arr){ return arr.reduce( => { return }); })';
It should work, thank you.Mark as resolved if this works for you?
Thanks for your feed :)
My bad: I forgot the issue with number precision on JS and it didn't come up in my tests.
Now it should be fixed, let me know otherwise!
BTW: strange, as JS should run fine up to 14 digits, mh...
Loading more items...