Specifications

These operators provide string functions using operators. Many other string functions are available,
see String.
str1 + str2
This operator returns a string that is the concatenation of its
operands, (str1 and str2).
+ string operator
See also + arithmetic operator.
str1 += str2
This operator appends its second operand (str2) onto the end of
the first operand (str1).
+= string operator
See also += assignment operator.
Logical operators
These operators are used to evaluate whether their operands are true or false. The binary operators
use short-circuit logic, that is, they do not evaluate their second operand if the logical value of
the expression can be determined by evaluating the first operand alone.
operand1 && operand2
This operator returns an object whose value is true if both its operands are
true; otherwise it returns an object whose value is false.
&& operator
Specifically, if the value of operand1 is false, the operator returns operand1
as its result. If operand1 is true, the operator returns operand2.
operand1 || operand2
This operator returns an object whose value is true if either of its operands
are true; otherwise it returns an object whose value is false.
|| operator
Specifically, if the value of operand1 is true, the operator returns operand1
as its result. If operand1 is false, the operator returns operand2.
! operand
If the operand's value is true, this operator returns false; otherwise it returns
true.
! operator
Comparison operators
These operators are used to compare objects and their values.
394
Enfocus Switch 10