diff --git a/02week/pigLatin.js b/02week/pigLatin.js index 046434c94..424acf752 100644 --- a/02week/pigLatin.js +++ b/02week/pigLatin.js @@ -9,10 +9,19 @@ const rl = readline.createInterface({ function pigLatin(word) { - - // Your code here - -} + let inputArray = word.split(''); + let vowelArray = ['a','e','i','o','u']; + for(let i =0; i