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.
If you're still struggling with this one:
how does your solution handle invalid inputs(according to the prompt)?
Regex works,
replaceAll
is not supported by Node.This comment is hidden because it contains spoiler information about the solution
That's your code's fault. You have an infinite loop for some input value. Read the instructions again, you're not doing input validation at all.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
that's the error message telling you your returned
False
when the correct answer is actuallyTrue
This comment is hidden because it contains spoiler information about the solution
i used regex on this;)
Why not?
too bad you can't use regexes