Series
JavaScript Plot Twists
Real bugs caused by JavaScript doing exactly what the spec says — and nothing you expected.
Your guide: Twisty. Has read the spec. Is still surprised every time.
1 of 5 parts published · 5 min total
0/1 read
Start reading: Part 1 →- 1The Leaderboard That Ranked 9 Points Above 100Why JavaScript's sort() compares numbers as strings, why a 'lazy' comparator works in Safari but breaks in Chrome, and the one-line fix.5 min read3
- 2Why ['1', '7', '11'].map(parseInt) returns [1, NaN, 3]Coming soon
- 3The return statement that returned undefinedComing soon
- 40.1 + 0.2 and the invoice that was off by one centComing soon
- 5The object key that reordered itselfComing soon
Get new posts in your inbox
No spam. Unsubscribe any time.