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 difference between parameters and arguments in JavaScript functions

The terms “parameter” and “argument” are often used interchangeably in the context of JavaScript functions. You may have wondered what the difference is, if any. Let’s clear this shit up once and for all! 💩

Security and performance issues with target="_blank" on links

Setting the value of a link’s target attribute to _blank will make the link open in a new tab or window. Ideally, you shouldn’t be doing this (and here’s why). But if you are, there are a couple of security and performance issues to be aware of.

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.