The comma operator (,) execute both operand but return only right side value
let num = 1;
num = (num++, num);
console.log(num);
// expected output: 2
x = (2, 3);
console.log(x);
//expected output: 3
The comma operator (,) execute both operand but return only right side value
let num = 1;
num = (num++, num);
console.log(num);
// expected output: 2
x = (2, 3);
console.log(x);
//expected output: 3
For further actions, you may consider blocking this person and/or reporting abuse
Prashant Sharma -
Om Vaja -
Probir Sarkar -
Mike Young -
Top comments (0)