Home arrow JavaScript arrow JavaScript Operators
JAVASCRIPT

JavaScript Operators


You can't do much with a programming language without operators. JavaScript is no exception. So this article will introduce you to JavaScript operators and what you can do with them.

Author Info:
By: James Payne
Rating: 4 stars4 stars4 stars4 stars4 stars / 3
November 05, 2007
TABLE OF CONTENTS:
  1. · JavaScript Operators
  2. · Arithmetic Operators
  3. · Assignment Operators
  4. · Add and Assign
  5. · Comparison Operators
  6. · Logical Captain?

print this article
SEARCH DEVARTICLES

TOOLS YOU CAN USE

advertisement
JavaScript Operators
(Page 1 of 6 )

Our last article left off with a brief overview of Operators. I know you didn't study them you slacker, so I will put them up here again (and it increases my word count. BOO-YAH!)

Arithmetic Operators

 

Operator Symbol

What it Does

+

Used for addition

-

Used for subtraction

*

Used for multiplication

/

Used for division

%

Returns the remainder in division

++

Increments a value by 1

--

Decrements a value by 1

Assignment Operators

 

Operator Symbol

What it Does

"="

Assigns a value to a variable

+=

Assigns and adds a value

-=

Assigns and subtracts a value

*=

Assigns and multiplies a value

/=

Assigns and divides a value

%=

Assigns and Modulates a value

Comparison Operators

 

Operator Symbol

What it Does

"=="

Is equal to

"==="

Is equal to both value and type

!=

Not equal to

>

Greater than

<

Less than

>=

Greater than or Equal To

<=

Less than or Equal To

Logical Operators

 

Operator Symbol

What it Does

&&

AND

||

OR

!

NOT


blog comments powered by Disqus
JAVASCRIPT ARTICLES

- More Top jQuery Plugins for Menus
- Top jQuery Tutorials for Beginners
- New UI Framework and SDK for JavaScript Rele...
- JavaScript OpenPGP Tool, Node.js 0.6.3 Avail...
- Yahoo Releases Cocktails Language and Develo...
- Customizing jQuery Slideshows: Dynamic Contr...
- Customizing jQuery Slideshows: the animate()...
- Customizing jQuery Slideshows: slideUp() and...
- Customizing jQuery Slideshows: hide() and sh...
- Web Workers: Performing Calculations in Para...
- More Top JavaScript Frameworks and Libraries
- More Dynamic jQuery Styling Techniques
- The Top JavaScript Libraries
- The Top JavaScript Frameworks
- Dynamic jQuery Styling

Dev Articles Forums 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Weekly Newsletter
 
Developer Updates  
Free Website Content 
Contact Us 
Site Map 
Privacy Policy 
Support 



© 2003-2012 by Developer Shed. All rights reserved. DS Cluster 11 - Follow our Sitemap
Popular Web Development Topics
All Web Development Tutorials