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.
I do not know Groovy but the task tells you to throw a custom error (raise exception). The code you provided does not do it. Also you should not be publishing your solutions.
Not the best indentation but good work
Thank you!
JS. Ruby and Groovy translations were written by someone else, like Python one.
Yes, allow contributors is checked. Thanks for your help @b4b
I asked for help with the Python translation. I did not write it, my kata was in JS. I was promised help with Python in the next 20 hours or so.
I think the opinions on this are divided. I wrote this kata in 2017 and this discussion section has more than enough hints about errors and types of exception allowed. The tests check for a specific custom error message and it seems pretty clear from the description.
If you simply check the input for being a string, that might help. Check how to check data type in JS. Keyword is type. Also maybe read up on throwing an Error syntax in JS.
The idea was to include some extra new material - throwing a custom error.
Any way you like as long as the error message matches the one in the instructions.
Oh, thank you! So nice to hear nice words.
This comment is hidden because it contains spoiler information about the solution
Great work!
This comment is hidden because it contains spoiler information about the solution
Math class is not allowed, not just Math.pow(). Should be reflected in the title.
Loading more items...