(function() { console.log(myvar); // undefined var myvar = 'local value'; })();
Standard input is empty
Standard output is empty
prog.js:2:4 ReferenceError: console is not defined
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!