Week 2 Last week, we used HTML and CSS to build a personal page. HTML gave us the content, and CSS let us change how it looked. If we wanted to change the text on the page, we had to edit the HTML file and refresh the browser. JavaScript is a programming language that lets us change a page while someone is using it. For example, we can respond to a button click by showing a message. We will add that to the same page we made last week. Here is what our page will look like before and after clicking the button: The button stays in the same place, and the paragraph underneath it changes. We can use similar code later when someone interacts with part of the merch page. Getting started Open last week's folder in your editor and open index.html in your browser. Keep the editor and browser next to each other so you can see what happens as you work. If you missed last week or cannot find your files, ask for a copy of the Week 1 example. Adding the button First, we need a button to click and a paragraph where we can show the fact. Add these inside
, just before
:

Your fact will appear here.

The first line adds a button inside a paragraph, which keeps it on its own line. type="button" makes it a regular button. Because we used the HTML