JavaScript Assignment Operators | JavaScript Assignment Tutorial By WDH

JavaScript Assignment Operators

JavaScript Assignment Operators

The assignment operator is used to update the value of variables. Some assignment operators are combined with other operators to perform a computation on the value contained in an update of the variable with the new value.

The Assignment Operators are shown as below:



Same as


a = b

a = b


a += b

a = a+b


a -= b

a = a-b


a *= b

a = a*b


a /= b

a = a/b


a %= b

a = a%b



  let a = 21;