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.
Good to know there is a built-in fcn for checking for integers.
The difference is trivial.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
The only way to solve this kata
"equal or greater than" doesn't exist, that's arrow function
Bit confused here. Why is there an "equal or greater than" used right after the assignment?
easy to read. shortest solution
Good job. Didn't know there's a built-in function for it.
Read on MDN: Number.isInteger()
Nice work. This is easiest one for me to read.
No. Number.isInteger cannot get a negative number because Math.sqrt returns NaN for negative numbers.
This comment is hidden because it contains spoiler information about the solution
I think it isn't very corect solution becouse function Number.isInteger convert every integer to boolean "true" even if it is negative value so we have always true ;)
toInteger() is obsolete not isInteger.
Where did you read it? It was just introduced in ES6 and that page doesn't say it's obsolete.
Loading more items...