An Array of Arrays in Javascript

I would like to build an array of arrays and pass it to the class below.  How do I build an array of arrays using Javascript?

The code would look some like this
var Cars = new Array();
Cars[0]="Hoopdee";
Cars[1]="Honda";

jQuery.slimbox(Cars, 1, {loop: true});

jQuery.slimbox([["left.jpg"], ["middle.jpg"], ["right.jpg"]], 1, {loop: true});
Ray TurnerSenior ConsultantAsked:
Who is Participating?
 
leakim971PluritechnicianCommented:
var Cars = new Array();
Cars[0]=["Hoopdee"];
Cars[1]=["Honda"];
0
 
Ray TurnerSenior ConsultantAuthor Commented:
Okay.  How do you build an array of arrays?
0
 
leakim971PluritechnicianCommented:
var Cars = new Array();
Cars[0]=["Hoopdee"];
Cars[1]=["Honda"];

Cars is an array
Inside Cars you've two array
each of this array conatins a string
0
 
Ray TurnerSenior ConsultantAuthor Commented:
Thanks!!!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.