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.
You're right. I was thinking in 2%0. It's useless.
0 can be divided by any numbers so I don't think "number + 2" would do anything useful here.
@wthit56 I only can see one error in the original message that I'm answering.............
TypeError: Property 'sqrt' of object # is not a function
I think that the tests that check the solution are doing dirty things, and obviously bad. The same code in JavaScript console works (different browsers and so)
I have the same problem, if I try to return in the first line
Math.sqrt(9)
It raises that error......
0%2 will return 0
What does it happen if the number is 0 and you do 0%2 ?
This comment is hidden because it contains spoiler information about the solution