WTFJS
summary
Live demos show specific JavaScript pitfalls and one-line hacks with working console output: 0.1 + 0.2 != 0.3 and IEEE‑754 quirks, parseInt radix bug that parses leading zeros as octal, surprising == coercions (array vs string vs number), Date.now and +casting, double‑dot toFixed syntax, double tilde fast rounding, Math.max/Math.min oddities, NaN/Infinity behavior, and a Constructor-as-eval trick. Examples include mutated Number.prototype breaking comparisons and concise fixes; code runs live so results and gotchas are visible.
AI-written summary · about
chapters (6)
- 0:00Start
- 6:03typeof {} 'object'
- 12:45Math.max() Math.min() false Math.max -Infinity
- 15:56'constructor' typeofc 'string' C[c] [Function: String]
- 17:16Either the language is crazy or we are for using it!
- 17:40We challenge everything.
related talks
41mJavaScript is Weird. MythBusters Special
32mJavaScript is weird. MythBusters special
23mTruthiness, falsiness and other JavaScript gotchas
29mJavascript in Wonderland
44mJavaScript is weird. MythBusters special.
05mJavaScript: The Bad Parts
51mJavaScript Gotchas
24mDown the Rabbit Hole: Javascript in Wonderland
