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.
Only for the main diagonal. So the top left corner to the bottom right corner.
💀
Thank you kind sir for this explaination!
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Like what XoRMiAS said, you're trying to match the typeof for the first argument and check if the first variable's typeof is equal to the second argument. So like in the description typeof 42 would equal "number". Then "number" === "number", which returns true. Where as typeof "42" would return "string", and string !== number, so it returns false.
It took me half an hour to realize I'm suppose to match the type of variable equal to type.
Before I was matching the type of both equal to each other. (T.T)
This one is a great kata, really makes you think of all the possible alternatives. I was stuck for almost two hours until I finally debugged what was wrong. Forgot to do a math method. 10/10 kata!