The + sign juxtaposes the two values, unless they are actual numerals.
So if a.value = 2 and b.value = 3 then a.value + b.value = 23
See calculator below:
But 2+3 = 5 if you write the numerals instead of the variable names.
subtraction works:
a.value - b.value = -1
You can cheat, as in this second calculator:
result.value = (- firstnumber.value - secondnumber.value) * -1
Not sure how to do plain old addition
- Printer-friendly version
- Log in to post comments