aArray['fedex'] = ".fed"; Array.prototype.reduce() var x = new Array(10); for (var i = 0; i < 10; i++) { x[i] = new Array(20); } x[5][12] = 3.0; click below ⦠The advantage of multidimensional arrays is that they allow us to group related data together. Neither the length of a JavaScript array nor the types of its elements are fixed. document.writeln("yahoo domain: " + aArray['yahooo']); Multidimensional Array in PHP. }; aArray['yahooo'] = ".yahoo"; You may also have a look at the following articles to learn more –, All in One Software Development Bundle (600+ Courses, 50+ projects).