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.
Triple equal '===' means equivalent in value and in type. Double equal '==' means equivalent in value.
Try this: in your browser console, type
1 == true
Also try this:
5 == '5'
The reason for these answers is that number 1 is 'truthy' as they say, and is equal to the value of true, but the type of 1 is a number, and the type of true is a boolean. Similarly, the type of 5 is a number, and the type of '5' is a string, even though their values are equal.
Excellent explanation! Comments like these make codewars a great place to learn how to code.