please dont rip this site
Microsoft® JScript™
Operator Precedence
 Language Reference 
Version 1 


Operators in JScript are evaluated in a particular order. This order is known as the operator precedence. The following table lists the operators in highest to lowest precedence order. Operators with the same precedence are evaluated in left to right order in the expression.

OperatorDescription
. [] ()Field access, array indexing, and function calls
++ -- - ~ ! delete new typeof voidUnary operators, return data type, object creation, undefined values
* / %Multiplication, division, modulo division
+ - +Addition, subtraction, string concatenation
<< >> >>>Bit shifting
< <= > >=Less than, less than or equal, greater than, greater than or equal
== != === !==Equality, inequality, identity, nonidentity
&Bitwise AND
^Bitwise XOR
|Bitwise OR
&&Logical AND
||Logical OR
?:Conditional
= OP=Assignment, assignment with operation
,Multiple evaluation

Parentheses are used to alter the order of evaluation. The expression within parentheses is fully evaluated before its value is used in the remainder of the statement.

An operator with higher precedence is evaluated before one with lower precedence. For example:

z = 78 * (96 + 3 + 45)

There are five operators in this expression: =, *, (), +, and +. According to precedence, they are evaluated in the following order: (), *, +, +, =.

  1. Evaluation of the expression within the parentheses is first: There are two addition operators, and they have the same precedence: 96 and 3 are added together and 45 is added to that total, resulting in a value of 144.
  2. Multiplication is next: 78 and 144 are multiplied, resulting in a value of 10998.
  3. Assignment is last: 11232 is assigned into z.


© 1997 by Microsoft Corporation. All rights reserved.


file: /Techref/inet/iis/jscript/htm/js616.htm, 4KB, , updated: 1997/9/30 03:44, local time: 2024/11/21 13:53,
TOP NEW HELP FIND: 
3.144.101.75:LOG IN

 ©2024 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions?
Please DO link to this page! Digg it! / MAKE!

<A HREF="http://techref.massmind.org/techref/inet/iis/jscript/htm/js616.htm"> Operator Precedence</A>

After you find an appropriate page, you are invited to your to this massmind site! (posts will be visible only to you before review) Just type a nice message (short messages are blocked as spam) in the box and press the Post button. (HTML welcomed, but not the <A tag: Instead, use the link box to link to another page. A tutorial is available Members can login to post directly, become page editors, and be credited for their posts.


Link? Put it here: 
if you want a response, please enter your email address: 
Attn spammers: All posts are reviewed before being made visible to anyone other than the poster.
Did you find what you needed?

 

Welcome to massmind.org!

 

Welcome to techref.massmind.org!

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

  .