Notes on JavaScript
20 posts per page. Guests can comment without an account.
Newest first
Oldest first
closures.js
let in a for-loop, still a trap
Why the classic var example still shows up in interviews, and what actually changed.
promise.ts
Promise.all vs allSettled
One rejection should not wipe a dashboard of widgets. allSettled keeps the rest.
optional.js
Optional chaining is not a null check
When ?. hides bugs, and when a real if still reads better.