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.
Well, this solution is wrong, yes.. But actually the year 2000 IS a leap year, because it is multiple of 400..
;)
It's a compact way to round a number without without needing to check for negatives and do Math.ceil/floor accordingly. ~~ is clever and useful but not intuitive :) http://stackoverflow.com/questions/4055633/what-does-do-in-javascript has a good writeup of how it works.
toLowerCase() is useful, but the "charCodeAt()" cannot return a prime number.Any other way to shorten the length?
Okay, I added the Test info in comments like most other katas do. That is what you were asking me to do, right?