My question may be already answered, but I could not find it not in Search Engines google or bing doesn't like '+' (plus) sign in search request.
Anyway, why this is zero
+[[]][0] // = 0
and this is one
++[[]][0] // = 1
UPD: Michael Berkowski have a good answer, but I steal don't understand one thing
if [[]][0]
evaluates to an empty array, then why ++[]
is ReferenceError: Invalid left-hand side expression in prefix operation
UPD2: now I get it.. it seems I was trying to type ++0 in console and getting an Error, but I should be using var a = 0; ++a