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.
@B1ts I am pretty sure in that case the error would say:
TypeError: number.replace() is not a function.
But instead it says "string.replace()" is not a function.
Nope, there is 1 test where argument is a number. (IDK why, but there is :/)
Try adding
console.log(typeof string)
Because you're using it on something that is NOT A STRING.
5.replace() doesn't exist, neither does [].replace (IDK what you're actually using it on)
You're trying to use
.split()
on something that isn't a string.