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.

Boolean attributes in HTML

In HTML, some special attributes are called boolean attributes. They’re unique because it’s the mere presence of the attribute that matters. If the attribute is present, it’s considered truthy, regardless of its value. If it’s omitted altogether, it’s considered falsy. Some examples are required, disabled, and hidden.

The textContent and innerText properties in vanilla JS

My friend Chris Ferdinandi has already written about the difference between the innerHTML and textContent properties. Today, I want to show you the difference between the textContent and innerText properties.

The difference between break and continue in JavaScript

In JavaScript, the break and continue statements both let you control what’s happening inside a loop. But they do very different things. Let’s jump right in and look at the differences!