A array is a special variable which holds multiple values.
Like if we have more that 2 times of same variety name and we want it be in a single variable we have to use array.
eg;
var fruit1="Mango"
var fruit2="Banana"
var fruit3="Orange"
Here we have 3 fruits in different variable to merge this in a single variable we have to use an array
So an array be like
var fruits=[];
var fruits=["Mango","Banana","Orange"]
now we have all fruit items in single variable called fruit.
How to get value from the array?
So get value from the array we need index of the value like
var fruit1=fruits[0];
var fruit2=fruits[1];
var fruit3=fruits[2];
With the help of indexing we will get the value of the fruits;
How to get length of the array?
To get length of the we have to use length property
like var arraylength=fruits.length;
arraylength=3;