Hi, I'm relatively new to JavaScript and I've been having trouble pushing data into an array.
I have two dynamic vars and I need the array to be formatted like:
var array = [[-373597200000, 315.71], [-370918800000, 317.45], [-368326800000, 317.50]];
I already have a loop running for each iteration of the vars, I'm just not sure how I put the two vars into the array in the format above. I've tried:
array.push(var1 + "," + var2);
For each iteration of the loop but it doesn't seem to be working.
So, what's the proper way to push data into an array in the format above?
Thanks in advance!