Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<head>
  <meta charset="utf-8">
  <title>JS Bin</title>
</head>
<body>
</body>
</html>
 
var a = 1;  
function outer() { 
  var b = 2;   
  console.log(" test 1 ", a, b);    
  function inner() {       
    a = 3;  
    b = 4;   
    c = 5;  
  }         
  inner();    
  console.log(" test 2 ", a, b, c);  
}
outer();                  
console.log(" test 3 ",a, b);    
 
Output

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

Dismiss x