title: Javascript Object context
body: <p>Do this Object have its context:</p>
  
  <pre><code>{}
  </code></pre>
  
  <p>if yes ,than it must also have VO(Variable Object) .So than,when i do this:</p>
  
  <pre><code>foo={
      name:"Maizere",
      height:function () {console.log(name);}//output is undefined
   }
  
    foo.height();
  </code></pre>
  
  <p>When the height() method gets run js first checks function context since it can't find that name ,it travels to next i.e parent context Vo and here parent context is the context of literal object ,since that name resides in that VO why i get undefined?</p>
  
  <p>How is that property residing in the VO of the literal object context simply as a property or simply like variable ,i need a complete explanation .Thank u @all.</p>