Answers for "javascript =+"

C++
1

+=

addition assignment operator
Posted by: Guest on November-03-2020
1

javascript +=

Addition assignment (+=) The operator ( += ) 
adds the value of the right operand to a variable
Posted by: Guest on June-24-2021
0

what does -= mean in JavaScript

/* JavaScript shorthand -=
-= is shorthand to subtract something from a
variable and store the result as that same variable.
*/

// The standard syntax:
var myVar = 5; 
console.log(myVar) // 5
var myVar = myVar - 3;
console.log(myVar) // 2

// The shorthand:
var myVar = 5;
console.log(myVar) // 5
var myVar -= 3;
console.log(myVar) // 2
Posted by: Guest on February-18-2020

Browse Popular Code Answers by Language