Hosting Solutions
mobile_logo Table of Contents

Multidimensional Array Programming Tutorial

Learn to write and process multidimensional arrays using JavaScript. They are called Multidimensional because they contain one or more arrays to provide a deeper level of data nesting and processing than normal basic arrays. <body> <script> var people = [ [ "Joseph",27,"United States",["blue","black"] ], [ "Maria",21,"Uraguay",["brown","green"] ], [ "Brian",35,"United Kingdom",["green","red"] ], [ "Susan",42,"Australia",["blue","blonde"] ] ]; // people[2][3][1] = "brown"; // document.write(people[2][3][1]); for(var i = 0; i < people.length; i++) { document.write("<h2>"+people[i][0]+"</h2>"); for(var j = 0; j < people[i].length; j++) { document.write(people[i][j]+"<br>"); } } </script> </body>

JavaScript Videos

Array Programming

Typing Text Animation Tutorial Array Loop ProgrammingHow to Detect User Browser JavaScript TutorialArray Slideshow Animation TutorialGet or Remove Random Array Elements TutorialAlphabetic Search First Letter A to Z Script Tutorial PHP MySQLMemory Game Programming TutorialMultidimensional Array Programming TutorialExam Application Programming Tutorial Quiz Online TestFisher Yates Shuffle Modern Algorithm Array Programming Tutorial