what does i++ mean in javascript 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: decrement operator in javascript
let b = 1;
b--;
--b;
Example 3: javascript increment
x = 0;
++x;
x++;