Default Badge

In your project, Create a JavaScript variable and display the variable’s value in the HTML.

Creating a Variable

We’re creating a variable named noun1 with the value “Pokemon”.

var noun1 = “Pokemon”

Displaying the variable in HTML


Tip: If you started from scratch with a New Pen, you’ll need to add jQuery for the above code to work.  Anytime you see the $ in the sample code, you’ll need to add jQuery to the Pen.