title: how to access variables in closures if there are local variables with the same name?
body: <p>I took this from Google Code Playground <a href="http://code.google.com/apis/ajax/playground/" rel="noreferrer">http://code.google.com/apis/ajax/playground/</a></p>
  
  <pre><code>/*CLOSURE
  * When a function is defined in another function and it
  *    has access to the outer function's context even after
  *    the outer function returns
  * An important concept to learn in Javascript
  */
  
  function outerFunction(someNum) {
    var someString = 'Hai!';
    var content = document.getElementById('content');
    function innerFunction() {
      content.innerHTML = someNum + ': ' + someString;
      content = null; // IE memory leak for DOM reference
    }
    innerFunction();
  }
  
  outerFunction(1);
  
  ///////////////////////
  </code></pre>
  
  <p>Its all ok, but if I have a local variable in the inner function with the same name as a variable in the outer function then how to access that variable?</p>
  
  <pre><code>function outerFunction(someNum) {
    var someString = 'Hai!';
    var content = document.getElementById('content');
    function innerFunction() {
      var someString='Hello';
      content.innerHTML = someNum + ': ' + someString;
      content = null; // IE memory leak for DOM reference
    }
    innerFunction();
  }
  
  outerFunction(1);
  </code></pre>