
LRU cache explained simply: how it decides what to evict, why a plain-object cache eats your memory, and how to build an LRU on a JavaScript Map in 15 lines.

A higher-order function, explained simply: a function that takes or returns another function. Why map(parseInt) gives NaN and how to read this kind of code.

What a Map in JavaScript is, in plain words: a dictionary where any value can be a key. How Map differs from an object and from the .map() method — and when to use it.

for loop or map in JavaScript: what's the difference and which to pick. A comparison on five criteria, where forEach fits, and the await-inside-map trap.

How to add an interactive map to your website in 10 minutes with Leaflet and OpenStreetMap — no keys, no credit card. Step by step, with code and three gotchas.