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.
.
Angular uses it to extract function arguments for dependency injection.
This comment is hidden because it contains spoiler information about the solution
No because you're dealing with strings...
I just dont think the author of the kata took this into account. Do the other laungauges for this kata default to scientific notation ?
If it were as simple as that, it wouldn't be a 4kyu kata.
Finished a blue, only got one point
Well the tests want you to return the full number and if you process the number as a string.
Sure, but no matter how you get to the solution with JavaScript, whether it's a string or not you will get something like '1.551118753 E+66' (for 51!). Which would not pass the test for large numbers, even though that is correct.
the idea is to calculate the factorials and store the result as a string.
Javascript always defaults to scientific notation for large numbers. Even with a function to convert scientific notation to numbers doesn't work well with the test cases. Skipped it unfortunately even though my algoritm was correct.