Codecademy Practice

Mad Lab part 2

Challenge: Mad Labs is a phrasal template word game where one player prompts others for a list of words to substitute for blanks in a story before reading the - often comical or nonsensical - story aloud.

Create a simple Mad Lab game that prompts for a noun, a verb, and adjective and an adverb and injects those into a story.

To practice: Click Events, targeting and manipulating HTML elements from JS, Inputs, String concatenation.

Example:

Enter a noun: dog
Enter a verb: walk
Enter an adjective: blue
Enter an adverb: quickly
Do you walk your blue dog quickly? That's hilarious.

Step by step instructions:

HTML

CSS

You are free to style and layout things as you please.

JS

YOUR_BUTTON_VARIABLE.addEventListener('click', event => {
  // Put here the code that you want to run
  // when the user clicks the button
});

GIT

DEBUGGING

Use your browser’s developer tools as you did in the previous challenge.