title: Javascript reference error - can't find a function inside object
body: <pre><code>var model = {
  
     test:function(){console.log("hello")},
  
     show: test() //ReferenceError: test is not defined
  }
  </code></pre>
  
  <p>I want to have a key inside model object to hold a function. Not sure why it gets undefined error. </p>