Strings can be compared using the comparison operators. Additionally,
you can concatenate strings using the + operator.
"dog" + "bert"
yields
"dogbert"
assignment
The assignment operator (=) lets you assign a value to a variable.
You can assign any value to a variable, including another variable (whose
value will be assigned). Several shorthand assignment operators allow
you to perform an operation and assign its result to a variable in one
step.
=
Assigns the value of the righthand operand to the
variable on the left.
Example: total=100;
Example: total=(price+tax+shipping)
+= (also -=, *=, /=)
Adds the value of the righthand operand to the lefthand
variable.
Example: total+=shipping (adds value of shipping
to total and assigned result to total)
&= (also |=)
Assigns result of (lefthand operand && righthand
operand) to lefthand operand.