4 ms·
What would you expect the behavior to be there? [5, 5]? I know that JS has its quirks (to say it nicely), but once you understand it (type coercion, equality,
by tg3 13y ago
What would you expect the behavior to be there? [5, 5]?
I know that JS has its quirks (to say it nicely), but once you understand it (type coercion, equality, scoping, etc) it doesn't seem to be a huge burden to me.
- nilved 13y agoYes. That's the behaviour in Python, Ruby and just about every other language with overloaded operators.