WAT by Gary Bernhardt

Do you guys know what Wat means?

Let’s talk about Javascript.

[] + []  = ""
[] + {} = [object Object]
{} + [] = 0
{} + {} = NaN
Array(16).join("wat") = watwatwatwatwatwatwatwatwatwatwatwatwatwatwatwat
Array(16).join("wat" + 1) = wat1wat1wat1wat1wat1wat1wat1wat1wat1wat1wat1wat1wat1wat1wat1wat1
Array(16).join("wat" - 1) = Watch the flipping video for the punchline!
Share Button

Tagged under: , ,

0 comments

Trackbacks

  1. […] you haven’t seen it check out Gary Bernhardt’s video on WAT. var hupso_services_t=new Array("Twitter","Facebook","Google […]

Back to top
http://twitter-widget.com/blog/button-html/