~/talk

JavaScript Riddles For Fun And Profit

Talkat Frontend fwdays'17 · on Sunday, 2017-11-26· [javascript]
slides:none on file

Shows concrete JavaScript gotchas with working examples: default parameters treat undefined vs null differently (passing null yields null, object.create requires null for no prototype), numeric literals allow 42..method (two dots) to call methods, computed property names evaluate expressions (e.g. [{}] -> "object Object"), destructuring with defaults implements “use val unless undefined” without ||, arrow functions lack the prototype property so can be detected, and spread on a generator yields only yielded values — the generator’s return value is ignored.

AI-written summary · about

  1. 0:00Start
  2. 2:37The Rules of this Game
  3. 8:26Are Two Consecutive Periods Ever Allowed in Javascript Code
  4. 16:27Default Values
  5. 23:06Solution
  6. 24:19Define a Function
  7. 36:02What Is an Iterator and the Spread Operator
  8. 38:08Javascript Riddles for Fun and Profit
~/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.