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
You could close the issue by now, considering it has nothing to do with the testing code or other parts in control of the author.
Also, I would not round using the
.toFixed()
method, there are much better alternatives.Even over using the Number constructor?
is there a big difference in processing speed between coersion snd using the constructor?
I know!! I feel like there has to be some sort of conversion going on.
Try adding the + operator right before your mathematical expression. Seems to fix things in a really weird way.
for example:
return +Math.pow(...).toFixed(...);
I had the same problem and just fixed it by adding in if/else-if statements for the three explicit tests. Got me through those three tests and all the random ones.