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.
indeed. thats strange
Wait, shouldn't you be asking the opposite question,
what's the benefit of using "==" over "==="?
?Because as everyone knows, you shouldn't be using
==
except in cases you know it won't get wrong.I still get the same result if I relace the "===" with the "==". Hence, what is the benefit of using "===" over the "=="? Could somebody enlighten me?
isGreaterThanZero is already defined. See the tests. Hope that helps.
you need to return true or false from the function, hence the ===
Your code check only first element of p.
And you misunderstood this kata. Look at the question below.
This comment is hidden because it contains spoiler information about the solution
Great code. I am trying to learn and I have a question: why you have added %1 === 0? Wouldn't it work without this part of code?
The idea is to build an object inline.
It has a single attribute to make the example shorter.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
I dont think this works any more.
2.675 returns as 2.67 when it should return as 2.68