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 code is a disgrace. I am better than this, but it's 12:48 and I'm tired. I will figure out how best to optimize this with regular expressions later.
At least I solved it. :)(:
An inelegant solution, which really stresses the importance of TDD.
This comment is hidden because it contains spoiler information about the solution
I'm so glad that I wrote all this out only to find out this could all be reduced to one line.
This solution is living proof that work smarter, not harder is the way to go.
It probably would have been a better idea to use typeof for this one.
Here, a functional approach is used, as opposed to using eval.
Gotta type those arguments...
Math.abs is of course a novel solution, but maybe I didn't feel like using it today.
This comment is hidden because it contains spoiler information about the solution
Template literals are surprisingly handy. If I were to do this with ES6 I would just use + and then the string, but it's slightly less elegant.
And here the only thing I might change is the toUpperCase() operation on string. Because that's unecessary to compute in a loop.
I didn't realize that .join() could be used to remove the commas as well. Easier than Regex.
As opposed to having to do it in the browser console itself? I think an in-page console would be swell.
This comment is hidden because it contains spoiler information about the solution
Gotta type those arguments.
Loading more items...