#javascript
Posts tagged with “javascript”.
32 posts
Callbacks Explained: The Foundation of Async JavaScript
A callback is a function passed to another function to be called later. Learn how they work, callback hell, and how to avoid its pitfalls.
Closures Explained: How Functions Remember Scope
A closure is a function that remembers the variables where it was created. Learn how they work, the classic loop bug, and where they are useful.
Code Splitting: Shipping Less JavaScript
Split a bundle so a page loads only the code it needs. Learn the route split, the dynamic import, and how to measure the result.
ESM vs CommonJS: The JavaScript Module Systems
import/export or require/module.exports? Learn the differences, the interop rules, and how to migrate a project safely today.
Event Delegation Explained: One Listener for Many Elements
Attach one listener to a parent instead of hundreds to children. Learn the bubbling, the target, and the pitfalls to avoid.
The Event Loop Explained: How JavaScript Runs Async Code
JavaScript is single-threaded yet handles concurrency. Learn the call stack, task queues, microtasks, and why setTimeout has a minimum delay.
The Fetch API: A Practical Guide
fetch is the modern way to make an HTTP request in the browser. Learn the response handling, the errors, the abort, and the streaming.
Higher-Order Functions Explained With Examples
A higher-order function takes a function as an argument or returns one. Learn map, filter, reduce, and how to build your own abstractions.
Immutability Explained: Why Not Changing Data Helps
Immutable data cannot be modified after creation. Learn how it prevents whole classes of bugs, how to update it efficiently, and when to skip it.
IndexedDB Basics: Storing Data in the Browser
IndexedDB is a real database in the browser. Learn the object store, the index, the transaction, and the async API.
JavaScript Array Methods: A Practical Reference
map, filter, reduce and friends are the core of modern JavaScript. Learn what each does, when to use it, and the mistakes to avoid.
JavaScript Bundlers Explained: What They Actually Do
A bundler resolves imports, transforms code and writes a file the browser can load. Learn the graph, the loaders, and the output.
JavaScript Dates: The Traps and How to Avoid Them
The Date object has real pitfalls: timezones, month indexing, and parsing. Learn the traps and the modern alternatives.
Debugging JavaScript With the Console: Beyond console.log
The console has more than log. Learn table, group, time, trace, and the DevTools features that make debugging faster.
JavaScript Destructuring: A Practical Guide
Destructuring pulls values out of arrays and objects into variables. Learn the syntax, defaults, renaming, and the nested patterns.
JavaScript DOM Manipulation: A Practical Guide
The DOM is the page as a tree. Learn the selection, the creation, the update, the events, and the performance traps.
JavaScript Map and Set: When to Use Them
Map and Set are keyed collections with real advantages over objects and arrays. Learn the API, the differences, and when they win.
JavaScript Modules: ESM, CommonJS and How They Differ
Modules split code into files with explicit dependencies. Learn ESM syntax, the CommonJS differences, and the interop gotchas.
JavaScript Object Methods: A Practical Reference
Object.keys, entries, assign, freeze and the rest. Learn what each does, the shallow-copy trap, and the modern alternatives.
Optional Chaining and Nullish Coalescing in JavaScript
?. and ?? make null-safe access readable. Learn the syntax, the difference from ||, and the cases where they hide bugs.
JavaScript Performance: Practical Optimisation Tips
Most JavaScript is fast enough. Learn where the real bottlenecks are, how to measure, and the optimisations that actually matter.
JavaScript Regular Expressions: A Practical Guide
Regex is powerful and easy to get wrong. Learn the syntax, the flags, the common patterns, and how to test them safely.
The JavaScript Spread Operator: Uses and Traps
Spread expands an iterable into individual elements. Learn the copy, merge, and call patterns, plus the shallow-copy trap.
localStorage vs sessionStorage vs Cookies: What to Use
Three browser stores, three lifetimes. Learn the scope, the size, the security, and which one fits a given value.
Null vs Undefined vs Nil: What the Difference Means
Null, undefined, nil, None and NaN all represent absence, but they differ. Learn the distinctions and how to handle missing values safely.
package.json Explained: Every Field That Matters
The manifest of a Node project. Learn the fields that affect resolution, the scripts, the exports map, and the version ranges.
Promises vs Async/Await: Which to Use and When
Promises and async/await solve the same problem in different styles. Learn how each works, the pitfalls of both, and how to choose.
Vitest for Beginners: Write a First Useful Unit Test
Set up Vitest in a practice JavaScript project, test normal and boundary cases, read a deliberate failure, and run a one-shot check before committing.
Form Validation Patterns That Don't Annoy Users
When to validate, what to say, and how to wire errors for screen readers — blur-based checks, reward-early-punish-late, and accessible error states.
Web Framework Trends: What's Rising and Falling in 2026
An evergreen analysis of the web framework landscape — React's plateau, Astro and Svelte's rise, the Vite toolchain shift, and how AI-assisted coding is reshaping framework choice.
View Transitions API: A Practical Guide
Same-document and cross-document view transitions explained — startViewTransition, view-transition-name, the @view-transition rule, and accessibility.
The State of Web Standards in 2026
Baseline, Interop, and a wave of new CSS and HTML features have changed what you can ship without polyfills. A clear look at where the platform stands in 2026.