MDN claims that:
The comma operator evaluates both of its operands (from left to right) and returns the value of the second operand.
However, when I tried running <script> alert(1, 2); </script>
, it shows a "1" instead of a "2".
Am I misunderstanding something?