+ 1
What is array? What is the method in creating on it?
Array
3 Answers
+ 5
In JavaScript: Array is a collection of data that has a sequencial arrangement of memory address and its index start with 0.
You can create an array by
var a = new array("data1","data2");
or
var a = ["data1","data2"];
or
var a = new array(write size of array);
a[0]="data1";
and so on
+ 2
just name a array and then have a list of things inside each array then put all of the array's together and then you can call a specific array
+ 1
an array is like a list of things
var favoriteColors = ["blue", "green", "red"];