to the end of it, then add "ay" to the end of the word. Leave punctuation marks untouched.
Examples
pigIt('Pig latin is cool'); // igPay atinlay siay oolcay
pigIt('Hello world !'); // elloHay orldWay !
'매일매일개발 > Codewars' 카테고리의 다른 글
codewars #64 Strip Comments (4kyu) (0) | 2018.06.20 |
---|---|
codewars #63 Sort two arrays (5kyu) (0) | 2018.06.19 |
codewars #61 Build a pile of Cubes (6kyu) (0) | 2018.06.15 |
codewars #60 Two Sum (6kyu) (0) | 2018.06.14 |
codewars #59 How long is the cable? (6kyu) (0) | 2018.06.12 |