Write an XHTML document that uses JavaScript code to do the following. The user is first prompted for a word and then for a possible prefix for that word. If the prefix is not an empty string, then it outputs the word itself and the prefix in the form:
outside has the prefix "out"
If the input to the previous prompt dialog is an empty string then it skips the previous output and the user is prompted for a possible suffix for the first word. It then outputs the word itself and the suffix in the form:
outside has the suffix "side"
as shown by the five snapshots of my browser window. A prefix and suffix can be one or more characters long.