Apr 27, 2026
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 27, 2026
Closures show up any time a JavaScript function uses a variable defined from outside its own curly braces.
That makes them common in callbacks, event handlers, timers, factory functions, and plenty of code that passes …
Apr 26, 2026
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
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
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 …
Aug 20, 2024
TypesScript interface names should start with “I” because while a type is real, an interface is purely “I"maginary.
Nov 8, 2021
tl;dr Add a netlify.toml file to the root of your project if one doesn’t exist.
Add the following setting to redirect all routes to your single-page-application.
[[redirects]] from = "/*" to = …
May 3, 2021
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 …
Apr 29, 2021
Event Handling in jQuery My newest course, “Event Handling in jQuery” went live at Pluralsight!
View My Course - Event Handling in jQuery
GitHub Files - Event Handling in jQuery
Course Description Open your …
Sep 17, 2020
JavaScript Function Signatures Alright, you’ve probably seen functions before. Something like this maybe?
function doSomething(name, desc, task) { // did something } This function, named doSomething, takes three …