I want to store coordinates into an array in javascript, I am new to javascript and do not have an idea how to do it.
Any help would be appreciated.
These answers are not usable if you're trying to store a grid/matrix that you wanted to access data point by x,y values later.
var coords = []; for(y=0; y < rows; y++){ for(x=0;x