0
Can someone explain this 2+-"2"+"3"
Please explain how does this operation works
3 Respuestas
+ 3
The type coercion changes the data type from string to integer.
In your case 2+-2+"3" = "03"
+ 1
Can you please explain why was it converted to integer why not string
+ 1
javascript change the data type so that the operation makes sense. subtracting two strings is meaningless.