I recently went through this typecast JS question:
Given \'11\'+10, the answer is 1110. It is clear that is not 21 because one
\'11\'+10
1110
21
In JS + in also concatenate operator, so if the first variable string then concatenate operator priority high
+
concatenate operator
- is only mathematical operator so it provide you subtract result.
-