title: Print / display a JavaScript variable's name instead of it's value
body: <p>Is it possible to print / display a JavaScript variable's name? For example:</p>
  
  <pre><code>var foo=5;
  var bar=6;
  var foobar=foo+bar;
  
  document.write(foo+ "&lt;br&gt;");
  document.write(bar+ "&lt;br&gt;");
  document.write(foobar + "&lt;br&gt;");
  </code></pre>
  
  <p>How would we print the variable's names so the output would be:</p>
  
  <pre><code>foo 
  bar 
  foobar
  </code></pre>
  
  <p>Rather than:</p>
  
  <pre><code>5
  6
  11
  </code></pre>