Day 17: Events
Lesson 0: Intro
Now that we know how to interact with the DOM in JavaScript, it's time to start making things feel more interactive.
JavaScript has the concept of events, something happens and we get the chance to run some code. Here are the main events that we care about.
onclick
onmouseover
andonmouseout
setTimeout
andsetInterval
keydown
onload
Ok so number 3 aren't technically events BUT they are super useful and they allow us to execute code at a certain time in the future.
Let's dive into these.