Programming MisconceptionsHomeMisconceptionsConceptsLanguagesTextbooksContributorsAbout
HomeConcepts
Operator

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 Operator
30 documented Misconceptions

Any LanguageJavaJavaScriptPythonScratch
Check Yourself
Misconception
ArithmeticPlusPrecedes
Addition has higher precedence than string concatenation
Misconception
ArrayAccessWithParentheses
Parentheses are used to access an element in an array
Misconception
AssignCompares
= compares two values
Misconception
AssignmentNotExpression
An assignment a=b is not an expression
Misconception
CannotChainMemberAccesses
Member accesses cannot be chained together
Misconception
CannotChainMemberToConstructor
Method calls or field accesses cannot be chained to a constructor invocation
Misconception
ComparisonWithBooleanLiteral
To test whether an expression is true or false, one must compare it to true or to false
Misconception
EqualityOperatorComparesObjectsValues
o==p compares the objects referred to by variables o and p
Misconception
MapToBooleanWithConditionalOperator
To map a boolean expression to a boolean, a conditional operator is necessary
Misconception
NoAtomicExpression
Expressions must consist of more than one piece
Misconception
NoShortCircuit
&& and || always evaluate both operands
Misconception
NoSingleLogicAnd
& is only a bitwise AND
Misconception
PreIncrementBeforeLoop
Pre-increment in update part of for loop means increment before loop body
Misconception
RightToLeftChaining
Chained accesses are invoked from right to left
Misconception
StringPlusStringifiesExpression
String concatenation stringifies non-String operand expressions

Find Misconceptions by...

Concept
Programming Language
Notional Machine
Textbook

About

About This Site
Structure and Content of the Inventory
Contributors