fork(1) download
  1. function foo() {
  2. print("foo called");
  3. return 123;
  4. }
  5. function bar() {
  6. print("bar called");
  7. return 456;
  8. }
  9. var result = (foo(), bar());
  10. print("result:", result);
  11.  
  12. print("result:", foo(), bar() ); // 3 arguments, no comma operator
  13. print("result:", (foo(), bar()) ); // 2 arguments, comma operator
Success #stdin #stdout 0.29s 214272KB
stdin
Standard input is empty
stdout
foo called
bar called
result: 456
foo called
bar called
result: 123 456
foo called
bar called
result: 456