This is in my opinion actually a decent interview question. If you know JS in detail, if you know how the "+" operator works, it's a super easy question. If you don't know JS in detail, if you don't know how the "+" operator works, it's pretty tough. If you want an engineer who knows JS in detail, asking this question can be valuable.
colordrops|4 years ago
dorgo|4 years ago
Edit: Wait, there is also the unary + which takes only one argument, but it also could be considered arithmetic.
Aeolun|4 years ago
afiori|4 years ago