Latest Posts

I write about front-end web development. I'm inspired by Nathan Barry's motto, teach everything you know. I also take a lot of inspiration from my friend and mentor, Chris Ferdinandi.

The difference between event.target and event.currentTarget

Now that we understand event flow in JavaScript, let’s look at some of the properties available to the event object. We’ll start with the difference between the target and currentTarget properties.

Event flow in JavaScript

I was going to write a series of posts about event handling, but LOL, it turns out I didn’t quite understand how event flow works in JavaScript. Let me show you what I learned from my research.

Why do people find HTML easier than JavaScript?

A lot of people—especially beginners—find HTML significantly easier than JavaScript. And that’s OK! I feel the same, and there’s a reason for it. And don’t worry: I’m not about to become a JS brogrammer who tells you that HTML and CSS aren’t real programming languages. Fuck those guys.