What I need to do is make this function to where it splits each part of the string entered, and then puts pig latin on each word, meaning it adds ay at the end of each word. Here's what I have so far:

```
function pigLatin(whatWeTitle) {

            var alertThis = " ";
            var splitArray = whatWeTitle.split(" ");

            for ( i = 0; i < splitArray.length; i++) {
                alertThis = makeSentenceCase(splitArray[i]) + " ";
                var newWord3 = splitArray.substring(1, whatWeTitle.length) + newWord + 'ay';
                alert(newWord3);

            }
        }

```

Right now, it just takes the first letter of the string and adds it to the end. It doesn't change each word to pig latin, just the whole phrase. I was wondering of anyone could help me with this. THanks.