JScript operator list

Source: Internet
Author: User

 

! The operator performs a logical "Non" Operation on the expression.
! = The operator compares the values of two expressions to see if they are equal.
! = The operator compares the values of two expressions to see if they are not equal or the data types are inconsistent.
The % operator performs division on two expressions and returns the remainder.
% = Operator performs division on the variables and expressions, and the remainder is assigned to the variables.
& Operator performs bitwise "and" operations on two expressions.
& = The operator performs the bitwise "and" Operation on the variables and expressions and assigns the result to the variables.
& Operator performs logical join operations on two expressions.
* Operators perform multiplication on two expressions.
* = The operator performs multiplication on the variables and expressions and assigns the result to the variables.
+ The operator sums two numeric expressions or concatenates two strings.
++ Operator variable value plus one.
+ = Operator adds the variable and the expression value, and the result is assigned to the variable.
, Operator enables the two expressions to be executed in order.
-The operator removes the value of another expression from the value of one expression or performs a negative operation on one expression.
-- Subtract one from the operator variable value.
-= The operator removes the expression value from the variable value and assigns the result to the variable.
/Operator performs Division operations on two expressions.
/= The operator performs Division operations on the variables and expressions and assigns the result to the variables.
<Operator compares whether an expression is smaller than another expression.
<Operator shifts the expression to the left.
<= Operator shifts the value of a variable left by the number of digits specified by the expression, and the result is assigned to the variable.
<= Operator compares whether the value of one expression is less than or equal to the value of another expression.
= The operator assigns values to variables.
= The operator compares two expressions for equality.
=== The operator compares two expressions to see if their values are equal or if their data types are consistent.
> The operator compares whether the value of an expression is greater than that of another expression.
> = The operator compares whether the value of an expression is greater than or equal to that of another expression.
> The operator expression shifts to the right, and the symbol bit remains unchanged.
>>= The operator shifts the value of a variable to the left by the number of digits specified by the expression. The symbol bit remains unchanged and the result is assigned to the variable.
>>> The operator expression shifts to the right, including the symbol bit.
>>>= The operator shifts the value of a variable to the left by the number of digits specified by the expression, including the symbol bit. The result is assigned to the variable.
? : The operator executes one of the statements according to the conditions.
~ The operator performs bitwise (inverse) operations on the expression.
| The operator performs bitwise "or" operations on two expressions.
| = Operator performs bitwise "or" Operation on the values of variables and expressions, and the result is assigned to the variables.
| The operator performs logical or operations on two expressions.
^ Operator performs bitwise XOR operation on two expressions.
^ = The operator performs bitwise XOR operations on the values of variables and expressions and assigns the result to the variables.
The addition operator (+) calculates the sum of two numeric expressions, or connects two strings.
The value assignment operator (=) assigns a value to the variable.
Bitwise AND operator (&) perform bitwise AND operation on two expressions.
The bitwise left shift operator (<) shifts everyone in an expression to the left.
Bitwise non-operator (~) Perform the bitwise (not) operation on an expression.
The bitwise OR operator (|) specifies the bitwise OR operation for the two expressions.
The bitwise right shift operator (>) shifts everyone in an expression to the right, keeping the symbol unchanged.
Bitwise XOR or operator (^) performs bitwise XOR or operation on two expressions.
The comma (,) operator enables two expressions to be executed consecutively.
The comparison operator returns a Boolean value, indicating the comparison result.
A list of compound assignment operators.
Condition (ternary) operator (? :) Execute one of the two expressions according to the condition.
The reduce operator (--) reduces the variable by one.
The delete operator deletes an object attribute or an element in an array ..
The Division operator (/) performs Division operations on two expressions.
The equal operator (=) compares two expressions to see if they are equal.
The greater than operator (>) compares two expressions to see if one is greater than the other.
The greater than or equal operator (> =) compares two expressions to see if one is greater than or equal to the other.
The constant equals operator (=) compares two expressions to see if the values are equal and have the same data type.
The increment operator (++) adds one to the variable.
Unequal operator (! =) Compare two expressions to see if they are not equal.
The instanceof operator returns a Boolean value indicating whether an object is an instance of a specific class.
The less than operator (<) compares two expressions to see if one is smaller than the other.
The less than equal operator (<=) compares two expressions to see if one is less than or equal to the other.
Logic and operators (&) perform logic and operations on two expressions.
Logical non-operator (!) Perform a logical non-operation on the expression.
The logical or operator (|) performs a logical or operation on two expressions.
Modulo operator. (%) Perform division on the two expressions and return the remainder.
The multiplication operator (*) performs the subtraction operation on the two expressions.
The new operator creates a new object.
Non-constant equal operator (! =) Compare two expressions to see if they have different values or data types.
List of execution priority information of the JScript operator.
The subtraction operator (-) calculates the difference between the two expression values.
The typeof operator returns a string that represents the expression's data type.
Returns the inverse number of a numeric expression.
The unsigned right shift operator (>>>) is used to shift the expression to the right, including the symbol bit.
The void operator avoids the return value of an expression.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.