Is null evaluated to 0 and undefined to NaN on arithmetic expressions?
null
0
undefined
NaN
According to some testing it seems so:
Without being type bound,
null == false == 0 null !== false !== 0
http://www.mapbender.org/JavaScript_pitfalls:_null,_false,_undefined,_NaN#0_6
With that said, null == 0, null + 4 = 4
null == 0
null + 4 = 4
I hope this helps.