Use the assignment operators assign values to variables or properties.
The simple assignment operator is =. It assigns the result of code block to variable.
= variable code block
The complex assignment operators are +=, -=, *=, /=, %=, &=, |=, ^=, >>=and <<=. These operators . These operators use the result of code block and operate variable with it.
operator variable code block