Multidimensional Array

sounds complex, but it's not really here is an example of a Multidimensional Array in javascript. It's just one array nested in another.

Javascript

var my_array = [ ["Hi Im a String", 1], ["Hi im also a String", 2] ];
console.log(my_array);

Demo

Other Items in javascript
Page Views

This page has been viewed 76 times.

Search Code
Search Code by entering your search text above.
Welcome

This is my test area for webdev. I keep a collection of code snippits here, mostly for my reference. Also if i find a good site, i usually add it here.

❤👩‍💻🕹