daily wtf

I saw this snippet on the daily wtf:

if b = b then
  b = true
end if

…and thought – how would I write that in JavaScript, if I wanted to keep the spirit of the thing, and add a little more “wtf” to it. Here y’are:

b=b==b?b==b:b;

It has a strange symmetry, dont you think?

2 Replies to “daily wtf”

Comments are closed.