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.

Never rely on the global event property in JavaScript

When writing event listeners in JavaScript, you should never rely on the global window.event property.

The importance of semantics in HTML

The Cambridge English Dictionary defines semantics as the study of meanings in a language.

The in operator vs the hasOwnProperty() method in vanilla JavaScript

Last month, my friend and mentor Chris Ferdinandi wrote about how to check if an object has a property in vanilla JS. I thought Iā€™d follow up by explaining the difference between the in operator and the hasOwnProperty() method.