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 instanceof operator in JavaScript

In JavaScript, the instanceof operator lets you check if an object is an instance of a particular type of object (no shit, Sherlock).

How to amend your last commit in git

I can’t tell you how many times I’ve made a commit only to realize I forgot to add a change. I used to make another commit in order to fix it, until I learned how to amend my last commit. Today, I’ll show you how.

Getting started with Svelte

Two months ago, I wrote about the new JavaScript framework series in the MDN Web Docs. At the time, it offered tutorials for three of the most popular choices: React, Vue, and Ember. I’m pleased to say that they’ve now added tutorials for Svelte. This is fantastic news for The Lean Web!