If the 9 and 10 is an integer than the answer would be 19 if one of the digits is a string than you'll get 910 in most programming languages (javascript in this case) this would be the right way to execute the code.
9+10
Will output 19
"9"+"10"
Will result in 910