Answers for "javascript pre increment and post increment"

0

javascript pre increment and post increment

//pre increment:
let a = 1;
console.log(++a); //2
console.log(a);//2

//post increment:
let a = 1;
console.log(a++); //1
console.log(a);//2
Posted by: Guest on September-26-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language