4 ms·
One of the core principles of JavaScript is to avoid errors whenever possible. Using + on arrays bothers me less than the fact that there is no error for divisi
by botker 15y ago
One of the core principles of JavaScript is to avoid errors whenever possible. Using + on arrays bothers me less than the fact that there is no error for division by zero.
- pietro 15y agoIt's not an error to divide by zero per the IEEE floating point specification, and you'll find the same behavior in most modern languages: http://en.wikipedia.org/wiki/Division_by_zero#In_computer_arithmetic http://en.wikipedia.org/wiki/Division_by_zero#In_computer_ar...