function foo() {
print("foo called");
return 123;
}
function bar() {
print("bar called");
return 456;
}
var result = (foo(), bar());
print("result:", result);
print("result:", foo(), bar() ); // 3 arguments, no comma operator
print("result:", (foo(), bar()) ); // 2 arguments, comma operator
ZnVuY3Rpb24gZm9vKCkgewogICAgcHJpbnQoImZvbyBjYWxsZWQiKTsKICAgIHJldHVybiAxMjM7Cn0KZnVuY3Rpb24gYmFyKCkgewogICAgcHJpbnQoImJhciBjYWxsZWQiKTsKICAgIHJldHVybiA0NTY7Cn0KdmFyIHJlc3VsdCA9IChmb28oKSwgYmFyKCkpOwpwcmludCgicmVzdWx0OiIsIHJlc3VsdCk7CgpwcmludCgicmVzdWx0OiIsIGZvbygpLCBiYXIoKSApOyAvLyAzIGFyZ3VtZW50cywgbm8gY29tbWEgb3BlcmF0b3IKcHJpbnQoInJlc3VsdDoiLCAoZm9vKCksIGJhcigpKSApOyAvLyAyIGFyZ3VtZW50cywgY29tbWEgb3BlcmF0b3I=