Mar 20 · 11 min read · Introduction What the heck are closures? JavaScript is already full of weird and unexpected behaviour. Well, here's one more: Closures. And here's the kicker—most JavaScript developers don't actually
Join discussion
Feb 7 · 4 min read · Signals are becoming a core primitive in modern frontend frameworks. But instead of starting with how to use signals, I wanted to start with a deeper question: What is a signal, really — at the lowest possible level? This post is the first entry in...
Join discussionJan 20 · 42 min read · Execution Context is one of the most fundamental yet most misunderstood concepts in JavaScript. It defines how JavaScript code is evaluated and executed, and it plays a central role in determining how variables, functions, and scope behave. Many core...
Join discussion
Jan 16 · 49 min read · If you're learning JavaScript, you've probably heard the term "closure" at some point. In many developers' experience, just hearing this word can trigger anxiety. In nearly 17 years of programming experience, I've noticed that closures are one of the...
Join discussion
Dec 7, 2025 · 3 min read · JavaScript’s behavior around variable access, function execution, and closures can feel mysterious until you understand lexical environments and scope chaining. These concepts form the foundation of how JavaScript resolves identifiers (variables, fun...
Join discussionSep 6, 2025 · 6 min read · Have you ever wondered why your React state variable still shows the old value immediately after calling setState? You're not alone! This is one of the most common React gotchas that trips up developers at all levels. function MyComponent() { const...
Join discussion
Aug 30, 2025 · 7 min read · TL;DR: This article explains how call, apply, and bind change this and enable method borrowing; how closures work and when they close over values; the difference between debouncing and throttling (with implementations); how new creates objects and ho...
Join discussion
Aug 29, 2025 · 4 min read · Functions are the backbone of JavaScript. They help us write modular, reusable, and cleaner code. Whether you’re building a simple calculator or a complex web app, understanding different ways of writing functions—and how JavaScript executes them—is ...
Join discussion
Aug 15, 2025 · 1 min read · Let’s try a simple custom hook that can be used to handle form values. import { useState } from 'react'; const useFormValues = (initialFormValues) => { const [formValues, setFormValues] = useState(initialFormValues); const setFormValueByKey = (...
Join discussion