Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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.





A Mad Lib


HERE

Step by Step Solution

There are 3 Steps involved in it

Step: 1

DOCTYPE html html head title Mad Lib Game title head body script Step 2 Prompt the user for ... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Financial and Managerial Accounting

Authors: Jonathan E. Duchac, James M. Reeve, Carl S. Warren

11th Edition

9780538480901, 9781111525774, 538480890, 538480904, 1111525773, 978-0538480895

More Books

Students also viewed these Accounting questions

Question

the student find other ways to meet his needs?

Answered: 1 week ago

Question

Explain why it is not wise to accept a null hypothesis.

Answered: 1 week ago