I don't get it


#1


how do i create an array


#2

There are two ways to create a JS array:

The constructor

var myArray = new Array();

The array literal

var myArray = [];

Obviously the literal is simpler, and is the usual method.


#3

ok i think i've got that, but the instructions are a bit unclear and I'm not sure how to do the things in the instructions


#4

var myArray = [junk]; it asked me to create an Array called junk is this how to do it?


#5

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.