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.
I passed this only checking fot month = 11, I didn't even remember to check for the day until I saw the other answers!
I did the exact same thing, but deleted my comment before submiting xD
Well TIL that
number * true === number
andnumber * false === 0
heheYet is the most voted answer, I don't understand it either.
A better way to go through an array or object is:
for(var i in array)
That will go throug each element of the array (or object), i will be the index 0, 1, 2, 3.. in case of an array and the properties in case of an object.
We have the same solution, but I used this shortcut.
You are saying: if this is true return true. if it is false, return false.
Much shorter to just return the comparition itself
return ending === str.slice(-1*(ending.length))
Also you could omit the
else
keyword as it will never execute code after the first return.This comment is hidden because it contains spoiler information about the solution
var mind = "blown";
I had troubles with
if (!people[i].wasNice)
Not passing the test, I had to change it to
if (people[i].wasNice === false)
:/
But in this case was a thing of copy pasting the exact same code in the given documentation. Didn't like, didn't learn anything :(
I looped trough "aeiouAEIOU" xD