Javascript in Wonderland
summary
Covers concrete JavaScript pitfalls and demos: IEEE‑754 NaN behavior (NaN !== NaN), Array.prototype.sort defaulting to lexicographic order and needing a numeric comparator, the double-tilde (~~) truncation trick and the indexOf + ~ presence check. Also demonstrates code obfuscation techniques like JS alphanumeric/JSFuck using the Function constructor to produce alert(1) and a reconstructed jQuery repository, and cites a real security case where eBay accepted such obfuscated payloads.
AI-written summary · about
chapters (9)
- 0:00Welcome
- 1:56Nothing in JavaScript
- 4:49Sorting number arrays
- 7:45Tilde operator tricks
- 11:18For loop optional parts
- 13:02Redefining undefined
- 15:27Alphanumeric JavaScript
- 25:18Arrow functions context
- 27:26JavaScript details matter








