Operator
An operator is a symbol or keyword in source code that represents a built-in function.
Related concepts: Function
Closest Wikipedia entry: Operator (computer programming)
Misconceptions about Operator30 documented Misconceptions
Check YourselfArithmeticPlusPrecedes
Addition has higher precedence than string concatenation
ArrayAccessWithParentheses
Parentheses are used to access an element in an array
AssignCompares
= compares two values
AssignmentNotExpression
An assignment a=b is not an expression
CannotChainMemberAccesses
Member accesses cannot be chained together
CannotChainMemberToConstructor
Method calls or field accesses cannot be chained to a constructor invocation
ComparisonWithBooleanLiteral
To test whether an expression is true or false, one must compare it to true or to false
EqualityOperatorComparesObjectsValues
o==p compares the objects referred to by variables o and p
MapToBooleanWithConditionalOperator
To map a boolean expression to a boolean, a conditional operator is necessary
NoAtomicExpression
Expressions must consist of more than one piece
NoShortCircuit
&& and || always evaluate both operands
NoSingleLogicAnd
& is only a bitwise AND
PreIncrementBeforeLoop
Pre-increment in update part of for loop means increment before loop body
RightToLeftChaining
Chained accesses are invoked from right to left
StringPlusStringifiesExpression
String concatenation stringifies non-String operand expressions