Can a function know the names of the variables it takes as arguments?
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/914968/inspect-the-names-values-of-arguments-in-the-definition-execution-of-a-javascrip">Inspect the names/values of arguments in the definition/execution of a JavaScript function</a>  </p>
</blockquote>



<p>When debugging javascript, I often have code like this:</p>

<pre><code>function doSomething(a,b,c) {
    console.log(a,b,c);

    //function contents here
    //...
}
</code></pre>

<p>This results in a line in the console like this:</p>

<pre><code>0.0010719847172334315 0.002392010391772366 -2.764548758273147e-7
</code></pre>

<p>Which is hard to read. I want to have output like this:</p>

<pre><code>a: 0.0010719847172334315, b: 0.002392010391772366, c: -2.764548758273147e-7
</code></pre>

<p>Is this possible to do? I don't think it is possible to do in many languages. However, I don't know javascript very well, and it seems like a language where it is possible to do clever things like this.</p>
