When I console the below expressions I get the following results. Can anyone explain what is internally going on in javascript? Why adding an empty array with integer results to string?
console.log([] + 50); // "50"
console.log([] - 50); // -50
console.log({} + 50); // "[object Object]50"
console.log({} - 50); // NaN