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