What is the Definition of Operator in Computer Language?
Operator is not well defined in programing languages. In math, we think of operators as notation for function. Typically, they have symbol forms, such as + - * / =.
[see What is Function, What is Operator?]
In programing languages, operator is not well defined.
[3,4,5]or property access
- Sometimes, the operator does not have a function form or is not a function at all, unlike the math sense.
the equal character =, such as
x = 4, is also an operator. But it could just be said as syntax.
new Date(), and
delete obj.key and
typeof obj, and
key in obj,
ternary if expression
(test ? true_expr : false_expr),
var x; is considered a statement.
there does not seem to be a absolute definition that qualify something to be operator or just syntax or “statement”.