3 ms·
String.prototype.charCodeAt and String.fromCharCode are never called in implicit type conversion. Type conversion is always done by calling primitive constructo
by pcthrowaway 12y ago
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
- rpcope1 12y agoIf you have any experience in most other programming languages this would seem to violate principle of least astonishment (see "wat").