What is the operator precedence?

August 3rd, 2009 by uCertify Leave a reply »

The operator precedence is an arrangement of operators in JavaScript. It decides the priority of the operators in a complex statement. In other words, it decides the order of the execution of operators in a complex statement. If a statement consists of more than one operator, the operators are used according to their priority defined in JavaScript.

The following table displays the operator precedence:

Operator Operator Name
() Parentheses
[] Braces
! Boolean NOT
~ Bitwise NOT
- Negation
++ Increment
Decrement
typeof typeof
void void
delete delete
* Multiplication
/ Division
% Modulus
+ Addition
- Subtraction
<< Bitwise left shift
>> Bitwise rightshift
>>> Bitwise zero fill
< Less than
<= Less than or equal to
> Greater than
>= Greater than or equal to
== Equal to (Comparison)
!= Not equal to
& Bitwise AND
^ Bitwise XOR
| Bitwise OR
&& Boolean AND
|| Boolean OR
? Conditional Operator
= Equal to (Assignment)
*= Multiply by value
/= Divide by value
%= Modulus by value
+= Add by value
- Subtract by value
<<= Left shift by value
>>= Right shift by value
>>>= Zero fill by value
&= Bitwise AND by value
^= Bitwise XOR by value
|= Bitwise OR by value
, comma
Get certified in first attempt download master-ciw-web-site-manager - Master CIW Web Site Manager simulation. Pass JavaScript Fundamentals in first attampt.
  • Share/Bookmark
Advertisement

Leave a Reply

uCertify.com | Our Company | Articles | Contact Us | News and Press Release | uCertify India | Entries (RSS)
MCSE: MCSA, MCTS, MCITP    JAVA Certification: SCJP, SCWCD    Cisco Certification: CCNA, CCENT    A+, Network+, Security+ Project+
Oracle Certification: OCP 11g, OCP 10g, OCA 11g, OCA 10g    CIW foundation    EC-212-32,    CISSP    Photoshop ACE CS4    Adobe Flash ACE, PMP, CAPM
© 2008 uCertify.com. All rights reserved. All trademarks are the property of their respective owners.