I want to know what is happening behind the scenes with the + operator.
console.log(1 + 2);
console.log(1 + "s");
In the above two example, addition and concatenation are both happening using a single (+) operator.
As I've found, JavaScript doesn't support operator overloading. So how is JavaScript handling it?