title: Store javascript variable into array
body: <p>Is it possible to store variables into arrays? What is the correct way of doing it? I can't seem to be able to store it in this way. </p>
  
  <pre><code>var fxVal = '&lt;?php echo $fxVal;?&gt;';
  var equitiesVal = '&lt;?php echo $equitiesVal;?&gt;';
  var boVal = '&lt;?php echo $boVal;?&gt;';
  var balance = '&lt;?php echo $account_balance;?&gt;';
  
  var myData = [fxVal,equitiesVal,boVal,balance];
  </code></pre>