Q. What will be logged?
Code:let a = 1; let b = a++; console.log(b);
β
Correct Answer: (B)
1
Explanation: Post-increment returns the value before incrementing.
let a = 1; let b = a++; console.log(b);