exec.js 186 B

12345678910111213
  1. var inc = (x) => x + 1;
  2. var result = 4 || 9 |> inc;
  3. expect(result).toBe(5);
  4. var f = (x) => x + 10
  5. var h = (x) => x + 20
  6. var result2 = 10 |> f || h |> inc;
  7. expect(result2).toBe(21);