Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • JavaScript Assignment Operators

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 107
    Comment on it

    JavaScript Assignment Operators

    The Assignment Operator is used to assign the value of the right operand to the left operand. The key rule for this operator is that it always assign value from right to left.

    The Assignment operator (=) works as (x=y) the y operand assigns its value to x operand, this is the basic use of Assignment operator but we can perform any Arithmetic operation on the right side and assign the value to left as:

    1. x += y same as x = x + y

    2. x -= y same as x = x - y

    3. x *= y same as x = x * y

    4. x /= y same as x = x / y

    5. x %= y same as x = x % y

    In the above examples the results of the arithmetic operations are assigned.

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: