• Home
  • Posts
  • Knowledge Base

Kelly's Notes

Thoughts, projects, and notes on web development, tech, and the things I learn along the way.

Browse PostsKnowledge Base

Latest Articles

The Event Loop and Microtasks

JavaScript runs one thing at a time, and the event loop decides what runs next. Microtasks such as promise callbacks always jump ahead of timers and events, which explains most surprising ordering in async code.

Read article →

Array Methods and Immutable Updates

Some array methods change the original array and some return a new one, and mixing them up is the most common cause of state that silently fails to update. Covers which is which, the four update patterns, and the shallow copy trap.

Read article →

Primitive vs Reference Types

Primitives hold a value directly, while objects and arrays hold a reference to one. That single difference explains how copying, comparing, and passing them into functions behave.

Read article →

Closures Explained

A closure is a function that keeps access to the variables of the scope it was created in, even after that scope has finished running. It is what makes private state, factory functions, and most callback patterns possible.

Read article →

© 2026 Kelly's Notes. All rights reserved.