Previous PageNext Page

7.4 JScript Operators

Operator Description
Addition (+)
 
Sum two numbers or perform string concatenation.
 
Assignment
 
Assign a value to a variable.
 
Bitwise AND (&)
 
Perform bitwise AND on two expressions.
 
Bitwise Left Shift (<<)
 
Shift the bits of an expression to the left.
 
Bitwise NOT (~)
 
Perform a bitwise NOT (negation) of an expression.
 
Bitwise OR (|)
 
Perform bitwise OR on two expressions.
 
Bitwise Right Shift(>>)
 
Shift the bits of an expression right, maintaining sign.
 
Bitwise XOR(^)
 
Perform bitwise exclusive-OR on two expressions.
 
Comma (,)
 
Causes expressions to be executed sequentially.
 
Comparison
 
Returns a Boolean value indicating the result of the comparison.
 
Compound Assignment
 
Combine computational operators with assignment operators to simplify expressions.
 
Conditional (trinary) Operator (?:)
 
Executes one of two statements depending on a condition.
 
delete
 
Deletes a property from an object, or removes an element from an array.
 
Decrement (--) and Increment (++) Operators
 
Decrements a variable by one.
 
Division (/)
 
Divide two numbers and return a numeric result.
 
Comparison (==)
 
Compares two expressions for equality
 
Comparison (>)
 
Compares the magnitude of two expressions.
 
Comparison (>=)
 
Compares the magnitude or equality of two expressions.
 
Comparison (===)
 
Compares two expressions for equality and type.
 
Decrement (--) and Increment (++) Operators
 
Increments a variable by one.
 
Comparison (!=)
 
Compares two expressions for equality.
 
Comparison (<)
 
Compares the magnitude of two expressions.
 
Comparison (<=)
 
Compares the magnitude or equality of two expressions
 
Logical AND (&&)
 
Perform a logical conjunction on two expressions.
 
Logical NOT (!)
 
Perform logical negation on an expression.
 
Logical OR (||)
 
Perform a logical disjunction on two expressions.
 
Modulus (%)
 
Divide two numbers and return only the remainder.
 
Multiplication (*)
 
Multiply two numbers.
 
new
 
Create a new object.
 
Negation Operator (-)
 
Indicate the negative value of a numeric expression.
 
Comparison (!===)
 
Compares two expressions for equality and type.
 
Subtraction (-)
 
Find the difference between two expressions
 
typeof
 
Determine the type of an expression.
 
Unsigned Right Shift (>>>)
 
Shift bits of an expression to the right.
 
void
 
Discards its operator and returns undefined.
 


Copyright © 2000 Chili!Soft

Previous PageTop Of PageNext Page