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.

Named callback functions in JavaScript

As explained in the MDN Web Docs, a callback function is a function passed into another function as an argument, which is then invoked inside the outer function to complete some kind of routine or action. I’d like to share a nice little trick you can do when passing in a named function.

Building a word and character count app in vanilla JavaScript

My second project for the Vanilla JS Academy was an application that counts the number of words and characters in a block of text. Here’s how I approached the challenge.

Declare multiple JavaScript variables in one statement

You can declare JavaScript variables one at a time like so: var myName = "Kieran";. But did you know you can declare more than one at a time using a single var statment?