What does += mean in JavaScript?

+= adds a number to a variable and stores the result in the same variable.

For example, this will print 16:

var someNumber = 10;

someNumber += 6;

console.log(someNumber); // 16