~/talk

JavaScript is weird. MythBusters special

Talkat jsday 2025 · 2025-04-07..04-08· [javascript]
slides:none on file

Live demos run in a small demo web app that shows code, output and audience voting and mostly works despite some zoom problems. Examples show concrete quirks: 1 + 2 === '12', 2 - 1 === 1, true + true === 2; NaN !== NaN while typeof NaN === 'number'; null + 5 === 5 but undefined + 5 === NaN; 0.1 + 0.2 !== 0.3; automatic semicolon insertion makes return { } become undefined; shallow copy yields shared object mutation; function.length counts params before the first default.

AI-written summary · about

  1. 0:00Introduction
  2. 3:19JavaScript myths spread online
  3. 5:51Demo setup and rules
  4. 7:21Type coercion in arithmetic
  5. 10:21NaN behavior and IEEE 754
  6. 13:30Loose vs strict equality
  7. 15:39Shallow cloning and references
  8. 17:28Null versus undefined
  9. 20:46Semicolon insertion quirks
  10. 22:55Function length and parameters
  11. 25:00Floating point precision
  12. 27:10String concatenation and NaN parsing
  13. 28:40Shadowing undefined parameter
  14. 30:05Historical reasons for quirks
  15. 31:30Summary and Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.