title: how to call global variable inside another scope Javascript
body: <p>How do i get the value of the global variable inside a scope .
  If i have the same name variable present in same scope .</p>
  
  <pre><code>&lt;script&gt;
  var number =2;
  
  var fun= function(numbs){
      console.log(number);
      //here it displays 2
  
      var number =numbs;
      console.log(number);
      //here it  displays 3
  
  
      console.log(number);
      //how do i get value of global variable here
  }
  
  fun(3);
  &lt;/script&gt;
  </code></pre>