Tag

JavaScript

A focused thread through the archive.

Apr 27, 2026

JavaScript 'this' and Arrow Functions Explained

JavaScript functions do not all decide this the same way. Regular functions usually get this from how they are called. Arrow functions do not create their own this at all. This post is about two questions: Where does a …

Apr 26, 2026

JavaScript Hoisting Explained

Hoisting is JavaScript’s setup behavior for declarations. It affects whether a function or variable can be used before the line where it appears in the file. That matters because function, var, let, and const do …

Apr 25, 2026

JavaScript Var, Let, and Const Explained

Most JavaScript code starts with a simple act: you give a value a name. We call that a variable declaration. That sounds small, but the way you create that name affects how the rest of your code can use it. A variable …

Oct 22, 2025

JavaScript Promise

A Promise is a guaranteed placeholder value for what a function or series of functions will return. It’s a promise to return a value eventually. The function swears this time is different. You can trust it. It …

Mar 3, 2022

JavaScript Spread Syntax Explained

The JavaScript spread ... syntax is amazing. What it does is let you take the individual items from an array, or the individual properties from an object, and spread them out into another place. That “another …

May 3, 2021

JavaScript Callbacks

Brief History of Callbacks It all starts with the callback function. A callback function is just a plain JavaScript function that is passed into another function as an argument. That’s it. Nothing special. This …