~/talk

JavaScript: The Bad Parts

Talkat dotJS 2017 · on Friday, 2017-12-01· [javascript, testing]
slides:none on file

Concrete gotchas with code examples and terminal experiments: how + coerces numbers to strings so swap operands can change results (including an empty block plus unary + edge case), why comparing numeric strings fails unless you cast, the assignment-as-expression pitfall and a linter rule to ban it, floating‑point comparisons requiring an epsilon, Array.prototype.sort needing a numeric compare function, and how Number.isNaN differs from global isNaN so NaN is reliably detected.

AI-written summary · about

  1. 0:00Intro
  2. 1:48Comparison
  3. 2:10Assignment
  4. 2:37Float Numbers
  5. 3:07None
~/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.