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.
The problem isn't because you modify the string, you didn't. The problem is you're creating a standalone function instead of adding a method to the
Stringprototype.You can take a look at this: MDN: Object Prototypes
toStringnottostringsweeeeeet, I'll update this with some markdown magic.
Danke!
Cheers tu6619, just fixed it :)
Which words did you spot? was it 'love'? I might need to be a bit more specific in the description
Well spotted, thanks!
This comment is hidden because it contains spoiler information about the solution
Thanks Thomas - I will sort that out.
This comment is hidden because it contains spoiler information about the solution
hey! i think they are strings and the reason they don't have '' around them is because they are single words, unlike the others. I wondered the same and this is the conclusion i came to. It's just the way the function outputs the resulting object
You didn't call lower()
This comment is hidden because it contains spoiler information about the solution
I'm not sure what you mean by not responding. When I try to submit your solution it passes three tests before failing (as you expected.) Could it have been a problem with the site?
returnwill exit the current function. Which means that your firstreturnis the culprit.returnline is completely off, since you're missing the()after the function's name.Since you've asked many questions on many JS katas lately, I recommend you to take a look at the Mozilla JS guide.
Which means that there's at least path where the function doesn't
returnanything. Hint: does yourif ... else iftake care of everything?Loading more items...