The assignment operator + is used to add values together.
Arithmetic operators are used to perform arithmetic between variables and/or values.
Given that y=5, the table below explains the arithmetic operators:
|%||Modulus (remainder of a division)|
Assignment operators are used to asign values to variables and/or values.
|+=||Add and assign. For example, x+=y is the same as x=x+y.|
|-=||Subtract and assign. For example, x-=y is the same as x=x-y.|
|*=||Multiply and assign. For example, x*=y is the same as x=x*y.|
|/=||Divide and assign. For example, x/=y is the same as x=x/y.|
|%=||Modulus and assign. For example, x%=y is the same as x=x%y.|
|+||Concatenate (join two strings together)|
|+=||Concatenate and assign|