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
Because the subtraction operator is not ambiguous and is only defined for numbers. Hence both operands are converted to numbers first.
See the specification: