Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html><head>
<script src="https://getfirebug.com/firebug-lite-debug.js"></script>
<script>
  var foo = 'bar'; // foo is a global object and a property of the head/window object
var myApp = function() { // remember functions create scope
! varrun=function(){
! ! //logsbar,foo'svalueisfoundviathescopechainintheheadobject
79
! ! console.log(foo);
! }(); }
myApp();
</script></head>
Output

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
anonymouspro
0viewers