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.
Of course, how silly of me! Currently on a bootcamp and constantly having it drummed into us not to mutate inputs.
Thanks very much. Your speedy assistance, and indeed your work on the kata in the first place, is massively appreciated!
I'm having a little trouble with the JS version of this Kata. Been enjoying the challenge and my code is partially working but at a stage where seeing the results of the tests is crucial to figuring out exactly what string to return in some cases. Unfortunately, when I run the tests, the failures display an error from the testing code rather than an "expected x but got y" style error.
The sample tests run fine, with no errors. And the lines in the error message all seem to refer to parts of the testing code rather than being directly related to my own code. The problem could still be with my own code because if I delete parts of my inspect method, the errors go away, but I can't see anything wrong with the code in question.
Please could anybody shed any light on what might be going wrong? The testing code seems to run one inspection on each day before returning the error below:
TypeError: dx[e].split is not a function
It's not really a duplicate, is it. Likely solutions might have some parallels (and thanks to your comment I'm going to see if I can adapt my code to solve that kata) but multiplication and exponentiation are slightly different.