function foo(p){ p = p || 10; return p;} print(foo());print(foo(null));print(foo(5));
Standard input is empty
10 10 5
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!