Bidding on Security That's right, dear readers, it's 0. You see, [] is truthy, and true is 1, so therefore-- no, sorry, wrong proof. [] is empty, and empty arrays are vaguely similar to the empty string, and the empty string has a length of 0, therefore, [] == 0, and +[] === 0 (because the unary plus forces it to be interpreted as an integer). Now
(
Read more... )