title: JavaScript: Stringify actual variable name
body: <p>I'm currently running a series of functions where the first argument is a variable defined elsewhere, and the second argument is a string that happens to be identical to the variable name:</p>
  
  <pre><code>assignString(Hello, 'Hello')
  assignString(World, 'World')
  assignString(Foo, 'Foo')
  assignString(Bar, 'Bar')
  ...
  </code></pre>
  
  <p>Ideally I would like to simplify this to something like this:</p>
  
  <pre><code>['Hello', 'World', 'Foo', 'Bar'].forEach(() =&gt; { assignString... })
  
  or
  
  [Hello, World, Foo, Bar].forEach(() =&gt; { assignString... })
  </code></pre>
  
  <p>Is this actually possible?</p>