#number being doubled when saved

5 messages · Page 1 of 1 (latest)

orchid pilotBOT
#
  • Consider reading #how-to-get-help to improve your question!
  • Explain what exactly your issue is.
  • Post the full error stack trace, not just the top part!
  • Show your code!
  • Issue solved? Press the button!
scenic nymphBOT
#

Documentation suggestion for @tired heron:
mdn Addition assignment (+=)
The addition assignment (+=) operator performs addition (which is either numeric addition or string concatenation) on the two operands and assigns the result to the left operand.

manic granite
#

x += y is equivalent to x = x + y, except that the expression x is only evaluated once.

#

for it doubling the number, no idea