The -"2" converts "2" into a number and negates it, giving -2. The result of subtracting -2 from 1 (that is, 1 - -2) is indeed 3.
solved Why num = 1 – -“2” equals 3 [closed]
The -"2" converts "2" into a number and negates it, giving -2. The result of subtracting -2 from 1 (that is, 1 - -2) is indeed 3.
solved Why num = 1 – -“2” equals 3 [closed]