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.
var fxVal = '<?php echo $fxVal;?>';
var equitiesVal = '<?php echo $equitiesVal;?>';
var boVal = '<?php echo $boVal;?>';
var balance = '<?php echo $account_balance;?>';
var myData = [fxVal,equitiesVal,boVal,balance];