Still learning JS, I have a new problem I don't understand. I have an array containing two arrays. I would like to concatenate all the values from the first one. What I don't understand is when I type :
var test1 = [2, "wine", "ok"];
var test2 = ["Ok", "hello"];
var arrayArrays = [test1, test2];
alert(arrayArrays[0, 1]);
I get :
Ok,hello
(in an alert).
What I don't understand is what does 0 and 1 stands for ?
I understand that if I type
alert(arrayArrays[0][1]);
I get hello, but I don't understand what it means when I type [0,1].
It strange cause if I type :
alert(arraysArrays[2, 1]);
I still get 'Ok, hello'.
Can someone help me please ?