Home / Guides / Self-Hosting & Infra
JavaScript Gotchas: Default Array.sort, == Coercion, parseInt in map, Date Parsing and var in Loops
Node 22 outputs: [10,9,100].sort(), numeric compare function, loose equality results, Number versus parseInt versus parseFloat, Date parsing of 2026-10-20 as UTC, 2026-02-30 becoming March 1, includes versus indexOf for NaN, and let versus var closures.
Read the full guide
The complete walkthrough is $0.01 — or free to read on the site after a quick check. AI agents can buy it directly over x402 with no account.
Open in the Knowledge Base Agent API →