
Articles
JavaScript, page 9 of 17
JavaScript is probably one of the most‑used programming languages in the world, and a cornerstone of front‑end (and more general) web development. It enables the development of interactivity and features that HTML and CSS alone simply cannot, and includes more advanced concepts like closures, callbacks, and asynchronous programming.
Below you will find a subset of articles from my blog specifically about JavaScript. This is an area that I have worked with for many years, and have managed to write about quite a few times. There are two hundred ninety‑eight collected together for you below.

Why We Use an Empty Dependency Array in React's useEffect Hook. Why We Use an Empty Dependency Array in React's

Mastering JavaScript's slice(). Mastering JavaScript's
slice()
Understanding JavaScript's sort() Method. Understanding JavaScript's
sort()Method
Responsive JavaScript and the matchMedia Method. Responsive JavaScript and the
matchMediaMethod
Unravelling JavaScript: Commonly Misunderstood Methods and Features. Unravelling JavaScript: Commonly Misunderstood Methods and Features

Using the Modulo Operator in JavaScript. Using the Modulo Operator in JavaScript

Throttling Scroll Events in JavaScript. Throttling Scroll Events in JavaScript

How to Handle Multiple Named Exports in One JavaScript File. How to Handle Multiple Named Exports in One JavaScript File

How to Import All Named Exports from a JavaScript File. How to Import All Named Exports from a JavaScript File

Check If a String Contains Only Whitespace with JavaScript. Check If a String Contains Only Whitespace with JavaScript

Higher‑Order Functions in JavaScript. Higher‑Order Functions in JavaScript

Spread Syntax in JavaScript (...). Spread Syntax in JavaScript (
...)
The Safest Way to Test for NaN. The Safest Way to Test for
NaN
When to Use var or let or const. When to Use
varorletorconstWhere to Find Jobs in Web Development. Where to Find Jobs in Web Development

LocalStorage in JavaScript. localStoragein JavaScript
Optional Chaining in JavaScript (?.). Optional Chaining in JavaScript (
?.)
Cleaning up Your JavaScript Code: The Double Bang (!!) Operator. Cleaning up Your JavaScript Code: The Double Bang (
!!) Operator