This is something like an infinite loop for me.
var sM = "Hello" - "World";
console.log(sM) && console.log(typeof sM);
I understand why string - string outputs NaN, but then "Hello" - "World"
typeof
is a number
.
It means subtracting string with another string gives you a type of a number
.
Where is the logic in that?