A quick, 5-minute video explaining the JavaScript portions of Gary Bernhardt’s infamous “Wat” talk.

For bonus points (after watching the video)

When Gary gave this talk, jsc was the go-to JavaScript REPL, and it’s still made available on off-the-shelf Macs. That said, Node has become pervasive, and I’d argue more web developers today would jump to node to give a talk like this before jsc. That said, you cannot replicate Gary’s middle slide (the second I examine) with node:

> [] + []
> [] + {}
'[object Object]'
> {} + []
> {} + {}
'[object Object][object Object]'

What changed?

Michael Schoonmaker

Person An icon of a human figure Status
Sleeper Agent
Hash An icon of a hash sign Code Name
Agent 0016