The comma operator is used to evaluate each of its operands from left to right and returns the value of the last operand var age = 20; age = (age++, age); console.log(age); // Output: 21