title: passing value to inner function not working
body: <p>I have a simple scenario in which i loop over an array then based on each element of array i create an object and pass it to another function which is defined inside another function.but the value from outermost function is not being passed.</p>
  
  <pre><code>// function1() returns an array
  
   function1().forEach(function (el) {
          var info = {};
          info.age = el
  
          function2('somearg',function(){
              fn3(info); //--------?? this info value is not being passed
          })
          console.log(info) //------?? it works here
  
      })
  </code></pre>
  
  <p>EDIT:</p>
  
  <pre><code>function2(node, func) {node.onclick = func;} //takes an arument and a function
  fn3(info){ console.log(info)} //for test
  </code></pre>