Down the Rabbit Hole: JavaScript in Wonderland
summary
Examples and concrete takeaways: JavaScript treats NaN is a Number, empty-array coercions let +!![] === 1, and Array.sort defaults to lexicographic order unless given a compare function; bitwise ~ serves as a compact indexOf check; all three for‑loop clauses are optional; older IE allows undefined can be redefined; engines sometimes self‑host sort implementations and small hand‑written insertion sorts beat natives on tiny arrays; non‑alphanumeric JS and arrow‑function thislessness are demonstrated, with a React/Redux Dailymotion redesign mentioned as real work.
AI-written summary · about
chapters (20)
- 0:00Start
- 1:32Dailymotion
- 2:36Sneak Peek of the New Daily Motion
- 6:38Math
- 9:212d Operator
- 9:58Bitwise Operators
- 13:17For Loops
- 16:04Javascript Rarely Runs in Isolation
- 16:54Sorting Arrays
- 17:26Lexicographical Sorting
- 20:21Numerical Sort
- 24:10Merge Sort
- 28:33Performance
- 28:44Benchmarking
- 34:25Disclaimer
- 35:04Javascript Is a Dynamically Typed Language
- 35:37Write Valid Javascript Using Square Brackets
- 44:10Arrow Functions
- 46:33Knowledge Is Power
- 51:41How Do You Protect Yourself from Cold Injections
related talks
24mDown the Rabbit Hole: Javascript in Wonderland
25mDown the Rabbit Hole: JS in Wonderland
29mJavascript in Wonderland
05mJavaScript: The Bad Parts
41mJavaScript is Weird. MythBusters Special
32mJavaScript is weird. MythBusters special
14mDown the Rabbit Hole: JS in Wonderland
23mTruthiness, falsiness and other JavaScript gotchas
