SyntaxFix
Write A Post
Hire A Developer
Questions
+= operator is used to concatenate strings or add numbers.
+=
It will increment your sum variable with the amount next to it.
var sum = 0; var valueAdded = 5; sum += valueAdded;
sum = 5