Default Badge

Use JavaScript variables and prompts to create an online MadLib. Get started with this Pen.

Prompting the user

var wildAnimal = prompt(“Enter a wild animal”);

Filling in a Blank

HTML:

<span id=“wildAnimal”></span>

JS:

$(‘#wildAnimal’).html(wildAnimal);