Mad Libs

The classic party game - now in code!

Skills: InputOutputVariables
1%

This project is a chance for you to practice the skills you learnt in the previous three projects.

You'll need to use all of the skills to write the code. Here's some references to help:

Brief

Write a program that asks the user for some words and then use those words to fill in the blanks in a sentence.

Specifically: ask for an exclamation, an adverb, a noun, and an adjective to put into the following sentence:

"___________! he said ______ as he jumped into his convertible ____ and drove off with his _________ wife."

For example, the user might give you "ouch", "loudly", "car", and "lovely". This results in:

"ouch! he said loudly as he jumped into his convertible car and drove off with his lovely wife."

Use the code below to get you started. Copy and paste the HTML and JavaScript into your own files. You do not need to write any more HTML to complete this project.