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.
@TIGOSTO your code fails with this input value:
"-1.234"
, it's in the sample tests.I think there's a problem with the solutions.
The code works outside codewars.
Did you check for empty strings/ edge cases, please read the last part of the question once, you may console.log those inputs and see what is going on!
.
Read this: https://docs.codewars.com/training/troubleshooting#print-input
You can't use replaceAll with Node less than 15.
That's because that's not a space, it's an escaped sequence, a new line.
It's clear why it's not valid. Read the description again if you have a doubt about it.
That's because your solution returns true while it should return false. And this is not a kata issue, an issue is a bug in the kata, not your code not working.