A Engineer Life | Maybe learn the concept of strings?

Well, + sign is used to either sum numbers or concatenate strings. In the last case from left to right it concatenates as with the second case - "2" + "2" = "22", but after seeing the minus sign(which is not ambiguous) it converts the intermediate result to int and performs the subtraction.