c69's Browser Pit

obfuscat

,

What will this return in JavaScript?
+!([] * []) + '' + ( - [])
Answer: 10 (select with mouse to see)

if your reaction to this is normal, ie: 'wtf ?' refer to article which will give you some insights.
http://www.2ality.com/2012/01/object-plus-object.html

p.s: yes this is useless, and you should not write code like this, but who cares wink

PointerLock API is finally available 3D space-ships of EVE online

Write a comment

New comments have been disabled for this post.

May 2013
M T W T F S S
April 2013June 2013
1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31