JavaScript Riddles For Fun And Profit
summary
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
chapters (8)
- 0:00Start
- 2:37The Rules of this Game
- 8:26Are Two Consecutive Periods Ever Allowed in Javascript Code
- 16:27Default Values
- 23:06Solution
- 24:19Define a Function
- 36:02What Is an Iterator and the Spread Operator
- 38:08Javascript Riddles for Fun and Profit








