News for hackers. Stuff that matters.
Re:In JavaScript, why does (null + null === 0) return true? by joelbirchler on Monday May 05, 2014 @04:48PM (#7701124)
The + operation is evaluated first, and + coerces nulls to zeros. This looks like:

(null + null) === 0

(0) === 0

true

Re:In JavaScript, why does (null + null === 0) return true? by swozniak on Tuesday May 06, 2014 @12:58PM (#7705653)
Ah, it looks like JavaScript coerces null to the type against which it is being compared.

Thanks!