I've recently seen a question and I don't understand why the result gives me a numeric value if it's string operations.
The operation is "1" - - "1"
, and logic would tell me that the result is "11"
, but it is 2
.
console.log("1" - - "1");
What is this behavior due to?