what does ^ mean js code example
Example 1: what does += mean in JavaScript
var myVar = 2;
console.log(myVar)
var myVar = myVar + 3;
console.log(myVar)
var myVar = 2;
console.log(myVar)
var myVar += 3;
console.log(myVar)
var myName = "Hi, I'm"
console.log(myName)
var myName = myName + " Joe."
console.log(myName)
var myName = "Hi, I'm"
console.log(myName)
var myName += " Joe."
console.log(myName)
Example 2: what does -= mean in JavaScript
var myVar = 5;
console.log(myVar)
var myVar = myVar - 3;
console.log(myVar)
var myVar = 5;
console.log(myVar)
var myVar -= 3;
console.log(myVar)