Operators (Visual Studio - JScript)
JScript includes a number of operators that fall into the arithmetic, logical, bitwise, assignment, and miscellaneous categories. The following sections link to information that explains how to use the operators.
JScript includes a number of operators that fall into the arithmetic, logical, bitwise, assignment, and miscellaneous categories. The following sections link to information that explains how to use the operators.
Adds two numbers or concatenates two strings, and assigns the result to the first argument.
Adds two numbers or concatenates two strings.
Assigns a value to a variable.
Performs a bitwise AND on two expressions, and assigns the result to the first argument.
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 two expressions, and assigns the result to the first argument.
Performs a bitwise OR on two expressions.
Shifts the bits of an expression to the right, maintaining sign.
Performs a bitwise exclusive OR on two expressions, and assigns the result to the first argument.
Performs a bitwise exclusive OR on two expressions.
Causes two expressions to be executed sequentially.
An assortment of operators (==, >, >=, ===, !=, <, <=, !==) that return a Boolean value indicating the result of a comparison
Chooses one of two statements to run depending on a condition.
Deletes a property from an object, or removes an element from an array.
Divides two numbers, returns a numeric result, and assigns the result to the first argument.
Divides two numbers and returns a numeric result.
Tests for the existence of a property in an object.
Increment operator (++) increments a variable by one; decrement operator (--) decrements a variable by one.
Returns a Boolean value that indicates whether or not an object is an instance of a particular class.
Shifts the bits of an expression to the left, and assigns the result to the first argument.
Performs a logical conjunction on two expressions.
Performs logical negation on an expression.
Performs a logical disjunction on two expressions.
Divides two numbers and assigns the remainder to the first argument.
Divides two numbers and returns the remainder.
Multiplies two numbers and assigns the result to the first argument.
Multiplies two numbers.
Creates a new object.
Allows passing references to variables to methods with reference or out parameters.
Shifts the bits of an expression to the right, maintaining sign, and assigns the result to the first argument.
Subtracts one number from another and assigns the result to the first argument.
Indicates the negative value of a numeric expression or subtracts one number from another.
Returns a string that identifies the data type of an expression.
Performs an unsigned right shift of the bits in an expression and assigns the result to the first argument.
Performs an unsigned right shift of the bits in an expression.
Prevents an expression from returning a value.
Lists elements that comprise JScript Language Reference and links to topics that explain the details behind the proper use of language elements.
Provides a conceptual overview of operators used in JScript and links to topics that explain the proper syntax for each operator and the significance of operator precedence.
Provides a list containing information about the execution precedence of JScript operators.
Lists JScript operators and links to topics that explain their proper use.