title: Variable in return function
body: <p>Is any way in Javascript, how access to variable value in return function?</p>
  
  <pre><code>function x (){
    return{
      foo:function(text){
        value= text;
      }
    }
  }
  a=x();
  a.foo("some text");
  </code></pre>