title: How do you find out the caller function in JavaScript?
body: <pre><code>function main()
  {
     Hello();
  }
  
  function Hello()
  {
    // How do you find out the caller function is 'main'?
  }
  </code></pre>
  
  <p>Is there a way to find out the call stack?</p>