Web Platform
Garbage Collection in JavaScript - how the engine cleans up after your code
May 7, 2026 · 16 min read #javascript #garbage-collection
20 articles tagged with fundamentals
Web Platform
May 7, 2026 · 16 min read #javascript #garbage-collection
Web Platform
May 7, 2026 · 18 min read #javascript #event-loop
Web Platform
May 6, 2026 · 6 min read #javascript #this-keyword
Web Platform
May 5, 2026 · 12 min read #javascript #async
Web Platform
May 5, 2026 · 11 min read #javascript #generators
Web Platform
May 3, 2026 · 10 min read #javascript #hoisting
Web Platform
Apr 30, 2026 · 10 min read #javascript #execution-context
Web Platform
Apr 29, 2026 · 17 min read #javascript #new-operator
Web Platform
Apr 28, 2026 · 25 min read #javascript #promises
Web Platform
Apr 24, 2026 · 14 min read #javascript #closure
Note
JavaScript has two core operators for checking what type a value is, and each answers a different question. typeof returns one of 8 strings and has known gotchas (null, arrays). instanceof walks the prototype chain and fails for objects from an embedded <iframe>. A note on when to use which, and why arrays have a dedicated Array.isArray.
May 8, 2026 #javascript #typeof #instanceof
Note
Every object property in JS carries 4 flags under the hood (writable, enumerable, configurable, plus value or get/set). You rarely think about them - until something odd happens: an assignment doesn't change the value, delete doesn't remove the field, for...in skips the property. A note on what property descriptors are, how getters/setters work, and why Object.defineProperty has different defaults than an object literal.
May 8, 2026 #javascript #object #descriptors
Note
JavaScript has a single numeric type - number - and plenty of things that trip up on it. A note on IEEE 754, NaN, precision limits, and BigInt. Why 0.1 + 0.2 !== 0.3 and why NaN === NaN is false.
May 7, 2026 #javascript #number #ieee-754
Note
Three methods on Function.prototype with the same goal - setting this. The differences are in (a) whether they invoke immediately, and (b) how you pass arguments. A quick rundown of which to use when.
May 6, 2026 #javascript #this-keyword #fundamentals
Note
In JavaScript an object can call a method it doesn't own. Class methods are defined once, on a shared prototype, and instances reach for them through a link. The mechanism is called the prototype chain. A note on how it works and why.
May 5, 2026 #javascript #prototype #oop
Note
The classic explanation says == checks values and === checks both type and value. The spec says something different - both check the type. This note is about what the actual difference is.
May 4, 2026 #javascript #equality #coercion
Note
The common advice says: always let, never var. But each of them communicates something different about the author's intent. A note on when var still makes sense and how to choose between them.
May 4, 2026 #javascript #scope #fundamentals
Note
A common saying is that const means „immutable". In reality it only protects assignment to the name, not the value itself - that's why mutating an array declared with const works, but trying to assign it something new throws.
May 4, 2026 #javascript #fundamentals
Note
How does the engine know that one function can see another's variables, but not the other way around? In JavaScript it comes down to where the code sits, decided before anything runs. That's lexical scope.
May 4, 2026 #javascript #scope #fundamentals
Note
JavaScript silently converts one type into another all the time. A note on why 1 + "2" is "12" and 1 - "2" is -1, and what the engine actually does between the lines.
May 1, 2026 #javascript #coercion #type-conversion