~/talk

DOWN THE RABBIT HOLE: JAVASCRIPT IN WONDERLAND

Talkat JSCamp Romania 2017 · on Wednesday, 2017-06-07· [javascript]
slides:none on file

Covers concrete surprises and hacks: NaN !== NaN and NaN has type Number; Array.sort() treats numbers as strings so numeric arrays need a compare function; the bitwise trick ~~n truncates decimals (faster than Math.floor) and ~indexOf(...) converts -1/>=0 to booleans; old browsers allow undefined to be redefined; demonstrates non‑alphanumeric JavaScript that builds and executes functions (enough to recreate jQuery and once bypass HTML filters on eBay), and explains arrow functions’ lexical this.

AI-written summary · about

  1. 0:00Introduction and welcome
  2. 1:26JavaScript oddities overview
  3. 3:15NaN and its quirks
  4. 6:04Lexicographical sorting in JS
  5. 8:54Custom sorting with compare functions
  6. 9:39Bitwise not operator hacks
  7. 13:36For loop flexibility
  8. 15:01Undefined and global scope
  9. 16:49Non-alphanumeric JavaScript intro
  10. 19:42Boolean coercion rules
  11. 23:58JavaScript Scrabble technique
  12. 26:50Why learn obscure JS features
  13. 28:15Arrow functions and context
  14. 30:24Why JavaScript matters
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.