+ 1

What is array? What is the method in creating on it?

Array

28th Nov 2016, 6:24 AM
Irah Singson
Irah Singson - avatar
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
28th Nov 2016, 6:52 AM
Aditya kumar pandey
Aditya kumar pandey - avatar
+ 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
28th Nov 2016, 6:33 AM
Ian
Ian - avatar
+ 1
an array is like a list of things var favoriteColors = ["blue", "green", "red"];
28th Nov 2016, 6:57 AM
nyze
nyze - avatar