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.
Im afraid with this ternary
Interesting. I like it.
Hi! It can be useful for you:
https://medium.com/@nikjohn/cast-to-number-in-javascript-using-the-unary-operator-f4ca67c792ce
What is the + doing?
As this is an 8 kyu level Kata, I understand the intention of not needing to validate inputs as a way to keep it simple for beginners, but didn't get the point of including the function inside a class. Wouldn't that probably confuse beginners as they could think the class was a necessary element for the function to work?
Otherwise, good Kata for comprehending the usefulness of programming for little things like finding the perimeter of a rectangle.
This was my exact solution to this kata, but it was failing on the large array test due to timeout, so I had to change to a different more efficient solution.
Did the tests change in the meantime or was it a performance issue with the server? (<- rhetorical question)