title: Is it possible to gain access to the closure of a function?
body: <p>A function in javascript forms a closure by keeping a (hidden) link to its enclosing scope. </p>
  
  <p>Is it possible to access it programmatically when we have the function (as a variable value) ?</p>
  
  <p>The real goal is theoretical but a demonstration could be to list the properties of the closure.</p>
  
  <pre><code>var x = (function(){
     var y = 5;
     return function() {
         alert(y);
     };
  })();
  
  //access y here with x somehow
  </code></pre>