Complete the function translateToPigLatin
that should take in an arugment of type string that is a sentence. It should return a string that is the sentence translated into pig latin.
The rules for tranlating english into pig latin can be found here: https://web.ics.purdue.edu/~morelanj/RAO/prepare2.html
Write tests using jest to test all interesting cases.
- clone this repo
- run
npm install
- run
npm test
to run tests