Quackit Logo
$1.99 Domain Names
With every new non-domain purchase thru ZappyHost, you get a domain name for only $1.99.
Create free Flash websites

JavaScript Operators

Print Version

JavaScript operators are used to perform an operation. There are different types of operators for different uses.

Below is a listing of JavaScript operators and a brief description of them. Don't worry if you don't understand all of them at this stage - just bookmark this page for reference and return whenever you need to.

Artithmetic Operators

OperatorDescription
+Addition
-Subtraction
*Multiplication
/Division
%Modulus (remainder of a division)
++Increment
--Decrement

Assignment Operators

OperatorDescription
=Assign
+=Add and assign. For example, x+=y is the same as x=x+y.
-=Subtract and assign. For example, x-=y is the same as x=x-y.
*=Multiply and assign. For example, x*=y is the same as x=x*y.
/=Divide and assign. For example, x/=y is the same as x=x/y.
%=Modulus and assign. For example, x%=y is the same as x=x%y.

Comparison Operators

OperatorDescription
==Is equal to
===Is identical (is equal to and is of the same type)
!=Is not equal to
!==Is not identical
>Greater than
>=Greater than or equal to
<Less than
<=Less than or equal to

Logical/boolean Operators

OperatorDescription
&&and
||or
!not

String Operators

In JavaScript, a string is simply a piece of text.

OperatorDescription
=Assignment
+Concatenate (join two strings together)
+=Concatenate and assign

You will learn how to use some of the most common of these JavaScript operators in the following pages.

Enjoy this website?

  1. Add this page to your Favorites
  2. Link to this page (copy/paste into your own website or blog):
  3. Help support Quackit by making a donation

Oh, and thank you for supporting Quackit!

Need Website Content?
Get unique, quality digital content for your website.
  • 270+ Website Templates
  • 800+ Flash Templates
  • 25,000+ Images, Logos
  • 30,000+ e-Books
  • 15,000+ Scripts
  • 27,000+ Animated GIFs
  • 21,000+ Ringtones
  • ...and much more!
Get your content now!
FREE Hosting!
With every domain you register with ZappyHost you get FREE hosting.
© Copyright 2000 - 2010 Quackit.com