Tag

#JavaScript

Every article tagged JavaScript, in one place.

  • 24 articles
  • 24 min of reading
  • 06 Oct, 2026 last updated

Showing 24 articles

Modern JavaScript 1 min read

Grouping Data with Object.groupBy and Map.groupBy

Grouping a list (orders by status, posts by month, people by team) used to need reduce or lodash. Object.groupBy does it in one line. Object.groupBy const orders = [ { id: 1, status: 'paid', total: 500 }, { id: 2, status: 'pending', total: 250 }, { id: 3, stat...

09 Aug, 2026 Author 1.5K 135
Read article
Modern JavaScript 1 min read

JavaScript Closures and Scope Explained

A closure is a function that remembers the variables from the place where it was created, even after that outer function has returned. Closures are behind callbacks, React hooks, module patterns and much more. Lexical scope const greeting = 'Hello'; function o...

29 May, 2026 Author 732 25
Read article
Modern JavaScript 1 min read

Debounce and Throttle in JavaScript

Some events fire very often: typing, scrolling, resizing. Running expensive work (an API call, a layout calculation) on every event wastes resources and can make the page janky. Debounce: wait until things calm down Run the function only after the events have...

10 May, 2026 Author 1.38K 97
Read article
Modern JavaScript 1 min read

Cancelling Async Work with AbortController

Users navigate away, type a new search or close a dialog while a request is still running. AbortController lets you cancel that work instead of letting it finish uselessly or, worse, overwrite newer results. Cancel a fetch const controller = new AbortControlle...

22 Apr, 2026 Author 681 55
Read article