Operators Operators are the most basic of functions in a programming language. They are typically implemented as specific directives within the scripting engine s code. This is in contrast to functions which are often implemented in JavaScript code made up of JavaScript statements. Operators are used to perform basic processing on specific data types. Operators can be classified by the number of operands that they process.
Typical operators can be unary or binary.
Unary operators execute against a single operand, while binary operators execute against two operands. A unary operator can be usually used prefix or postfix which will change the precedence of execution of the operator when used in an expression. These operators are used exclusively with variables with numeric data types. These operators are used with any data type to assign a specific value to a variable. These operators can be applied to variables or constants of most primitive data types and some complex data types.