WEB DEVELOPER SITE
HTMLCSSJAVASCRIPTSQLPHPBOOTSTRAPJQUERYANGULARXML
 

JavaScript Assignment


JavaScript Assignment Operators

Assignment administrators dole out qualities to JavaScript variables.

Operator Example Same As
= x = y x = y
+= x += y x = x + y
-= x - = y x = x - y
*= x *= y x = x * y
/= x/= y x = x/y
%= x %= y x = x % y

The = task administrator doles out an incentive to a variable.

Assignment

var x = 8;
Try it Yourself »

The += task administrator increases the value of a variable.

Assignment

var x = 8;
x += 4;
Try it Yourself »

The - = task administrator subtracts an incentive from a variable.

Assignment

var x = 8;
x - = 4;

The *= task administrator duplicates a variable.

Assignment

var x = 8;
x *= 4;
Try it Yourself »

The/= task partitions a variable.

Assignment

var x = 8;
x/= 4;
Try it Yourself »

The %= task administrator appoints a leftover portion to a variable.

Assignment

var x = 8;
x %= 4;



Welookups is optimized for learning.Copy right 2018 - 2019 kumar aditya singh .
All Right Reserved and you agree to have read and accepted our term and condition.
All Rights Reserved.

welookups.com