fork(1) download
  1. process.stdin.resume();
  2. process.stdin.setEncoding('utf8');
  3.  
  4. // your code goes here
  5. var x, f = function(arg)
  6. {
  7. console.log('arg is ' + arg);
  8. };
  9.  
  10.  
  11. // magic
  12.  
  13. f(1)
  14. {
  15. x = 2;
  16. }
  17.  
  18. console.log('x is ' + x);
Success #stdin #stdout 0.14s 51040KB
stdin
Standard input is empty
stdout
arg is 1
x is 2