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
ByteHide -
FAB Builder | Code Generation -
Abdelkader Boudih -
Trix Cyrus -
Top comments (0)