Day 17: Events
Wrap up
Congrats on completing today's lessons on events. It's a massive topic and we've barely scratched the surface BUT you have a good idea of how to use events to manipulate your DOM and data.
As a challenge for today - Add an event handler to the ball that when you press enter, makes the ball grow by 10px in diameter and when you click it, it shrinks by 10px.
Make sure the ball is never larger than 200px and never smaller than 10px.
You'll need to work out what the e.key
is for the enter key and then also change your border radius, as well to make it circular the whole time.