The following table lists JScript operators.
Operators
Description | Language Element |
---|---|
Adds the value of an expression to the value of a variable and assigns the result to the variable. |
|
Sums two numbers or concatenates two strings. |
|
Assigns a value to a variable. |
|
Performs a bitwise AND on the value of a variable and the value of an expression and assigns the result to the variable. |
|
Performs a bitwise AND on two expressions. |
|
Shifts the bits of an expression to the left. |
|
Performs a bitwise NOT (negation) on an expression. |
|
Performs a bitwise OR on the value of a variable and the value of an expression and assigns the result to the variable. |
|
Performs a bitwise OR on two expressions. |
|
Shifts the bits of an expression to the right, maintaining sign. |
|
Performs a bitwise exclusive OR on a variable and an expression and assigns the result to the variable. |
|
Performs a bitwise exclusive OR on two expressions. |
|
Causes two expressions to be executed sequentially. |
|
Returns a Boolean value indicating the result of the comparison. |
|
List of compound assignment operators. |
|
Executes one of two expressions depending on a condition. |
|
Decrements a variable by one. |
|
Deletes a property from an object, or removes an element from an array. |
|
Divides the value of a variable by the value of an expression and assigns the result to the variable. |
|
Divides two numbers and returns a numeric result. |
|
Tests for the existence of a property in an object. |
|
Compares two expressions to determine if they are equal. |
|
Compares two expressions to determine if one is greater than the other. |
|
Compares two expressions to determine if one is greater than or equal to the other. |
|
Compares two expressions to determine if they are equal in value and of the same data type. |
|
Increments a variable by one. |
|
Compares two expressions to determine if they are unequal. |
|
Returns a Boolean value that indicates whether or not an object is an instance of a particular class. |
|
Left shifts the value of a variable by the number of bits specified in the value of an expression and assigns the result to the variable. |
|
Compares two expressions to determine if one is less than the other. |
|
Compares two expressions to determine if one is less than or equal to the other. |
|
Performs a logical conjunction on two expressions. |
|
Performs logical negation on an expression. |
|
Performs a logical disjunction on two expressions. |
|
Divides the value of a variable by the value of an expression, and assigns the remainder to the variable. |
|
Divides two numbers and returns the remainder. |
|
Multiplies the value of a variable by the value of an expression and assigns the result to the variable. |
|
Multiplies two numbers. |
|
Creates a new object. |
|
Compares two expressions to determine that they are not equal in value or of the same data type. |
|
Right shifts the value of a variable by the number of bits specified in the value of an expression, maintaining the sign, and assigns the result to the variable. |
|
Subtracts the value of an expression from the value of a variable and assigns the result to the variable. |
|
Performs subtraction of two expressions. |
|
Returns a string that identifies the data type of an expression. |
|
Indicates the negative value of a numeric expression. |
|
Right shifts the value of a variable by the number of bits specified in the value of an expression, without maintaining sign, and assigns the result to the variable. |
|
Performs an unsigned right shift of the bits in an expression. |
|
Prevents an expression from returning a value. |