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.

Array literals vs the Array() constructor

There are two ways to create an array in JavaScript. You can either create an array literal OR call the Array() constructor function. Which should you use? Like many things in JavaScript, it depends!

Two ways to create a regular expression in JavaScript

There are two ways to create a regular expression in JavaScript. You can either create a regular expression literal OR instantiate the RegExp() constructor function. Which one should you use? It depends.

Resources for regular expressions

Regular expressions are powerful. But they’re fucking hard to write, and even harder to read. So I thought I’d share my favourite resources. I hope you find them helpful! ❤️