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 job. Didn't know there's a built-in function for it.
Read on MDN: Number.isInteger()
Fix null or special charactes:
https://www.codewars.com/kata/reviews/56002d1c656fe9438f00001b/groups/5f62cc655796f8000155b321
This comment is hidden because it contains spoiler information about the solution
split(' ') and join('') works.
The problem is it failed at the first condition, because "code" + 140 spaces + "wars" > 140
This solution does not pass all the tests.
Watch the comments below.
No early return by using
map
if it finds the missing number.There're some comments about
forEach
, it doesn't early return, too.