fork download
  1. var a = [ 1, 2 ];
  2. print(a.shift());
  3. print(a.shift());
  4. print(a.shift() || "!");
Success #stdin #stdout 0.01s 4984KB
stdin
Standard input is empty
stdout
1
2
!