Re:JavaScript's world domination
by pcthrowaway on Tuesday March 24, 2015 @06:43PM
(#9260046)
String.prototype.charCodeAt and String.fromCharCode are never called in implicit type conversion. Type conversion is always done by calling primitive constructor functions. In the case of subtraction ("1" - 1), Number is called on any non-numeric operand. Also see:
> false - 1
> true - 1