Define a function named PigLatin that takes a string as input and returns the Pig Latin translation.

Question:

Define a function named PigLatin that takes a string as input and returns the Pig Latin translation. For example, the call PigLatin('oops') should return 'oopsway', whereas PigLatin('foo') should return 'oofay'. Insert this function definition into your string.js library file. Then, create a Web page named piglatin.html in which the user can enter a word in a text box and click a button to see the Pig Latin translation.

Using your page, determine the Pig Latin translation of each of the following words: scheme

3rd

shortstop

abracadabra

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Question Posted: