addition calculator

Submitted by kdorfman on Fri, 04/21/2023 - 13:58

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:

Try to add the first and
second numbertogether
the result =

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

Try to add the first and
second numbertogether
the result =