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
MD ARIFUL HAQUE -
Fernanda Ek -
Ukeje Chukwuemeriwo Goodness -
Tutort Academy -
Top comments (0)