![]() |
Assignment operators![]() ![]() ![]() ![]() ![]()
Assignment operators are used to assign a value to variable. The value may be result of an expression or an operation performed on first operand itself. The following table gives a list of assignment operators with their descriptions:
= - The operand on the left is assigned with the value of the expression right += - The value of the expression on the right is evaluated first and the operand on the left is incremented by this value. -= - The value of the expression on the right is evaluated first and the operand on the left is decremented by this value. *= - The value of the expression on the right is evaluated first and the operand on the left is multiplied by this value. /= - The value of the expression on the right is evaluated first and the operand on the left is divided by this value. <<= The value of the expression on the right is evaluated first and the operand on the left is shifted left by this value . >>= - The value of the expression on the right is evaluated first and then a signed right shift is performed on the operand in the left by this value >>>= - The value of the expression on the right is evaluated first and then an unsigned right shift is performed on the operand in the left by this value . &=- The value of the expression on the right is evaluated first and then a bitwise and is performed on the operand in the left by this value. != - The value of the expression on the right is evaluated first and then a bitwise or is performed on the operand in the left by this value. ^= - The value of the expression on the right is evaluated first and then a bitwise exclusive or is performed on the operand in the left by this value.
|
|
Domain NamesJAVASCRIPT Types of Variables Arrays Data Type Conversion Arithmetic Operators Logical and Comparison Operators Assignment Operators Ternary Operators Operator Precedence Assignment Statements If StatementsSwitch Statement Function Call Statement Try, Catch and Throw Statements The For Loop Java While Loop The Do While Loop Break and Continue Statements
String Methods Array Methods Objects, Methods and Properties The Boolean Object The Date Object The Global Object The Math Object
The Number Object Color Constants Hierarchy of Browser Objects Window Object Document Object History Object Navigator Object Buttons Check Box Radio Buttons Text FieldsWorking with Image Maps Creating Simple Animation Hidden Fields Working with Style Sheets An Example of HTML Graphics Replacement The <SPAN> Tag Positioning of HTML Content The <LAYER> TagWeb DesignWeb HostingE Commerce |
| Home | Web Hosting | Web Design | Sitemap |
| Copyright (C) 2007. Web Domain design hosting. All rights reserved. |