Pig Latin III

Collapse Content

You finished handling vowel-words, so now its time to update the consonant-words. In Pig Latin, all the consonants until the first vowel should be moved to the end of the word. So while "laptop" will still be "aptoplay", "string" should become "ingStray".


Change your code so the first "consonant cluster" is moved to the end of the word and "ay" is added after. A word that begin with a vowel or a single consonant should return the same value as before.

Please sign in or sign up to submit answers.

Alternatively, you can try out Learneroo before signing up.


Contact Us
Sign in or email us at [email protected]