title: "Variable" variables in JavaScript
body: <p>I know it's possible in PHP to have &quot;variable&quot; variables.  For example,</p>
  <pre class="lang-php prettyprint-override"><code>$x = &quot;variable&quot;;
  $$x = &quot;Hello, World!&quot;;
  echo $variable; // Displays &quot;Hello, World!&quot;
  </code></pre>
  <p>Is it possible to refer to a variable by its name as a string in JavaScript? How would it be done?</p>