DEV Community

Discussion on: JavaScript Challenge 1: Simple Pig Latin

Collapse
 
albertomontalesi profile image
AlbertoM

Uhm, I think what the task meant with leave the punctuation marks untouched was in the case of them being alone, so if you have ! you don't want to end up with !ay. My solution would transform hello! to ello!hay which may be wrong, you are right. They should have had stricter tests and a better description on CodeWars lol, they have no test case for a punctuation mark attached to a string.