News for hackers. Stuff that matters.
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

Re:JavaScript's world domination by rpcope1 on Tuesday March 24, 2015 @07:43PM (#9260358)
If you have any experience in most other programming languages this would seem to violate principle of least astonishment (see "wat").