title: NodeJS converting string to variable
body: <p>I am trying to update the contents of a variable in nodejs with the use of a string.
  In client side javascript this was done with the use of window[variable] however since there is no "window" in nodejs. I tried using "this" and "module", however all im getting is an empty object. need help thanks</p>
  
  <p>Code Snippet:</p>
  
  <pre><code>var myVariable = 'Hello';
  var exchangeVariable = 'myVariable';
  
  this[exchangeVariable] = 'Hello World';
  
  /*
      myVariable should equal to 'Hello World!'
  */
  </code></pre>
  
  <p>Thanks!</p>