Sunday, August 26, 2012

List of all binary operators in JavaScript

I am trying to understand what is possible with binary operators (only binary operators) in JavaScript. So far the list of binary operators I have discovered are the the following. They are primarily sourced from this list, but are any missing?


Note, I am after specifically only binary operators which, according to the source listed above, is defined as binary operators you use with two objects (is this accurate?). I have also added the additions from @samsamX.



+ //Add
- //Subtract
/ //Divided by
* //Multiple
% //Modulus
< //Less than
> //Greater than
& //AND
| //OR
^ //XOR
~ //Invert each bits
<< //Move all bits onto the left
>> //Move all bits onto the right
>>> //Move all bits onto the right and fill left end with 0






Rating: 4 out of 5 based on 3 ratings



The post List of all binary operators in JavaScript appeared first on Javascript ASK.






via Javascript ASK http://javascriptask.phpfogapp.com/list-of-all-binary-operators-in-javascript.html

No comments:

Post a Comment