JavaScript · Lesson 4 of 4

Add interaction to your page

Bring your greeting, counter, and introduction toggle together on your personal page. Review the handlers you built, or write them if you started here.

Your task

Make all three handlers work on your page: your own greeting, a counter increase, and showing or hiding your introduction. Refine the messages and test each button more than once.

Each new lesson builds on your personal page. Your saved lesson draft opens when you return.

The image stays in your browser. Choose it, then use its filename when you add the image to your code.

Edit your project HTML and CSS

Your page

Checks use your current code. Try the page yourself too.

Do all three buttons work, and can you explain the code? Download your complete page, then continue to the next stage.

Next: Modern Interfaces