Virtual Open Schooling Online courses available at Virtual Open Schooling (VOS), for more details kindly click here!
NIOS Silver Jubilee Year
NIOS

Difference between revisions of "List of operators used in JavaScript"

From NIOS
Jump to: navigation, search
Line 19: Line 19:
  
 
An operator operates on operand or operands. The combination of oneor more operators is referred to as an expression.
 
An operator operates on operand or operands. The combination of oneor more operators is referred to as an expression.
 +
  
 
For example: netPayment=netPrice+salesTax
 
For example: netPayment=netPrice+salesTax
 +
 
In this example “+” operator operates on operand netPrice andsales Tax and its result assigned to variable net Payment.
 
In this example “+” operator operates on operand netPrice andsales Tax and its result assigned to variable net Payment.
 +
 
The following table shows the list of operators used in JavaScript:
 
The following table shows the list of operators used in JavaScript:
  

Revision as of 06:26, 9 August 2012

Previous Page Home Page Next Page
ICT Applications

An operator is used to transform one or more values into a singleresultant value. In JavaScript, operators are used in expressions tostore or return a value.

JavaScript operators are classified as:

* Arithmetic

* Logical

* Comparison

* String


An operator operates on operand or operands. The combination of oneor more operators is referred to as an expression.


For example: netPayment=netPrice+salesTax

In this example “+” operator operates on operand netPrice andsales Tax and its result assigned to variable net Payment.

The following table shows the list of operators used in JavaScript:


Previous Page Home Page Next Page
ICT Applications