I have an array like this :
var recordings = [];
recordings.push({
x: e.x,
y: e.y,
z: e.z
});
How can I retrieve all the values to be displayed ?
I tried :
recordings.x;
recordings.y;
recordings.z;
but it does not work
Thanks
recordings
is an array of objects. So if you want the first item, you will do it like this:If you want to loop through you array, you can do it like this:
Or like this:
Or if you want to use jQuery: