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.
for real..
You're confusing which tests you failed. Also read about Equality comparisons and sameness
proper syntax is != not !==
(one equals sign after '!')
At first, I write the if statement as 'if (val !== true)'.
But I got errors in case of 'val == null' and 'val == undefined' despite they are falsy as well.
Anybody could tell me why this cases happen??
This comment is hidden because it contains spoiler information about the solution
Instead of "0" as the first entry I just put "Sun" as the first entry.
Putting "Hello Ikarus" for the first entry would be entertaining... but both too direct and too indirect.
It is one of those cases where the case statement is not the best solution to the problem present.
Especially since the program is pretty much asking for a fancy array entry look up function.
Thats what I had assumed.