title: Access value of JavaScript variable by name?
body: <p>Hello it is possible to access the value of a JavaScript variable by name? Example:</p>
  
  <pre><code>var MyVariable = "Value of variable";
  
  
  function readValue(name) {
       ....
  }
  
  
  alert(readValue("MyVariable"));
  </code></pre>
  
  <p>Is this possible, so that the output is "Value of variable"? If yes, how do I write this function?</p>
  
  <p>Thanks</p>