Closed officer-rosmarino closed 6 years ago
https://www.ecma-international.org/ecma-262/5.1/#sec-11.6.2
'null' ToNumber is 0
@metrue so basically what happens is that with the -
operator (or even the +
operator) the null
is applied ToNumber
right?
@honestserpent I think so.
Great, thanks for your answer
Can someone explain this?
Wtf?