Declaring



var people = []; 
people[0] = "steve";
people[1] = "john";
people[2] = "david";

This is the array literal

var people = ["steve","john,"david"]; 

This uses the keyword Array

var people = new Array("steve", "john", "david"); 









© 2019 Better Solutions Limited. All Rights Reserved. © 2019 Better Solutions Limited TopPrevNext