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.
Comparison operators such as
<=
and>
coerce their arguments to numbers, if necessary. ( If this is, indeed, JavaScript. )Coercion has some subtleties though, that's very probably what's biting you. If you're new to coding, it is probably better not to rely on coercion; there are other ways with fewer subtleties, that will inflict fewer bugs.
The argument
s
passed in is a string not a number, you need to test whether the string represents a single valid number.