Question
Create a simple Mad Lib game using JavaScript. (A Mad Lib is a game where one player prompts others for a list of words to
Create a simple Mad Lib game using JavaScript. (A Mad Lib is a game where one player prompts others for a list of words to substitute for blanks in a story before reading aloud.) In your version, the web page will prompt the user for some words, and it will substitute the words in the saying, “Don’t count your chickens before they hatch!”
Please follow these directions step-by-step in the body element:
1. Start a script tag
2. Prompt the user for a verb and store it into a variable.
3. Prompt the user for a plural noun and store it into a variable.
4. Prompt the user for another verb.
5. Use the alert method to output Here is your Mad Lib: and then show the Mad Lib with the user’s words substituted in the phrase, Don’t ___ your ___ before they ___!
6. Make sure you have correct spacing and the exclamation mark.
7. In the same alert message, output the original phrase preceded by for a new line.
8. After the script closes, output the word Goodbye in h1 tags.
HERE
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started