+ 10

# what is result of 7-3+"9" ?

operator use but can't solved

39 odpowiedzi

+ 32

because 7-3 will be 4
and 4+"9" will result in "49" NOT 13.
If you want result 13 then you shound do-
7-3+Number("9")

+ 18

7-3+=+4

+ 16

the result will be : "49"

+ 11

How 49?

+ 7

The browser will first evaluate 7-3. The expression is reduced to 4+"9". Adding strings with numbers treats the numbers as strings. Thus, the expression becomes "4"+"9"="49".

+ 7

Didn’t look at the other post/answers... I think it’s:
7-3=4
4 + “9”=
Résultat: 49

+ 6

49

+ 6

Answer is 49
7 - 3 will be result in 4.
And 4+"9"= 49 😀

+ 5

Answer is 49

+ 3

Thanks guys

+ 3

49
Because 9 is not treated as an integer (within quotes)

+ 3

49

+ 3

in js result is "49"

+ 3

In python it will be error bcoz int and string we cannot add to add this we have to use the type conversion rule.

+ 3

the answer is 49 because there is a quote sign

+ 3

Result is 49.
Because 7-3 is 4 and you taken a string "9" to add with 4.
If you want result 13 then you should change string "9" into a integer.

+ 3

49

+ 2

the result is:49

+ 2

49