Quite an easy question to solve. However, there should be a mention to someone new to codewars how to supply a string to the function. If it wasn't for one of the comments, I wouldn't know that you have to use this keyword. The description needs more work.
This comment is hidden because it contains spoiler information about the solution
Quite an easy question to solve. However, there should be a mention to someone new to codewars how to supply a string to the function. If it wasn't for one of the comments, I wouldn't know that you have to use
this
keyword. The description needs more work.