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 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!

How to write an IIFE from scratch

In his post The anatomy of an immediately-invoked function expression, my friend Chris Ferdinandi shows you how he writes an IIFE from scratch. Here’s another way to approach it.