Answers for "Compound Assignment Operators"

0

Compound Assignment Operators

let x = 1;
x += 1;

console.log(x);

/*

Compound Assignment Operators
Operator name	Shorthand	Meaning
Addition assignment	a += b	a = a + b
Subtraction assignment	a -= b	a = a - b
Multiplication assignment	a *= b	a = a * b
Division assignment	a /= b	a = a / b

*/
Posted by: Guest on September-22-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language