Operators

Addition assignment (+=)

Try the free JavaScript compiler

Adds numeric operands or concatenates strings, then stores the result. The target is evaluated once; a string target can produce text rather than numeric addition.

Formal Syntax & Structure

javascript syntaxjavascript
target += value

Parameters & Attributes

NameTypeDescription
targetassignment targetWritable binding or property; evaluated once.
valueexpressionRight operand used by the underlying operation.

Return Value

operation result

The value written to the target.

Working Example

Example Snippetjavascript
let n = 8;console.log(n += 3);
JavaScript Reference