Module 10: Assignment

Kari Suleman

This week again let’s apply JavaScript and create something interesting. Using JavaScript and CSS, try to increase and decrease font size of the body text of this paragraph.


How I did it

The buttons have the ids makeSmaller and makeBigger.

When you click each button, there is an event listener that calls a function in the javascript file.

The function makeBigger sets the font style to 18px. makeSmaller sets it to 12px.