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.
Looks like you solved it in a way that may against the odds~~
It's specified in the description what to do with those values, so not an issue:
It's passing the tests for me. Maybe you modified sample tests by accident? Try hitting the 'Attempt' button.
Not a kata issue. Multiple 'WUB's in a row should be replaced by only 1 space, not more, which is exactly what it says in the logs.
Hi, the tests are expecting javascript objects with no prototype. In your case, your objects have the Obj prototype. You could create the output objects using the litteral object syntax or use Object.assign/spread operator to copy your Obj properties into a basic literal object.
No, and please read that,
(-1) * 3 * (-100)
is 300, not -300 and 300 > 30If the array was instead:
[[1,1],[2,3],[10,-100]]
the answer would be 30 and not 300.Well, that's not correct, you have some loop-like methods (
includes
andindexOf
) inside your loop so it won't work.ignore case
means that uppercaseA
would count the same as lowercasea
The error tells you exactly what your problem is:
TypeError: Reduce of empty array with no initial value.
For some values of number your array is empty. Read about how reduce works or use a simple for loop instead. Please, delete the post below, there is no need for 3 posts about the same.Not a kata issue, read this.