fork download
  1. function foo(p)
  2. {
  3. p = p || 10;
  4. return p;
  5. }
  6.  
  7. print(foo());
  8. print(foo(null));
  9. print(foo(5));
Success #stdin #stdout 0.02s 4984KB
stdin
Standard input is empty
stdout
10
10
5