A guessing game containing 3 or 4 separate options hg
The first questions can be answered as y or n and are handled by individual functions. The number guessing question is handled by a function that contains a while loop. The last question about favorite foods is handled by a function that contains an array of possible answers. The users answer is compared to these options using a for loop to see whether it is correct. All output is written to the page.