title: Get the 'name' of a variable in Javascript
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/3404057/determine-original-name-of-variable-after-its-passed-to-a-function">Determine original name of variable after its passed to a function.</a>  </p>
  </blockquote>
  
  
  
  <p>I would like to know if its possible to get the actual name of a variable.</p>
  
  <p>For example:</p>
  
  <pre><code>var foo = 'bar';
  function getName(myvar) {  
    //some code
    return "foo"  
  };  
  </code></pre>
  
  <p>So for getName(foo) will return "foo"</p>
  
  <p>Is that possible ?</p>
  
  <p>Thanks.</p>