Javascript examples for Array Operation:Multi Dimensional Array
get or access arrays of arrays
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <script type="text/javascript"> window.onload=function(){/*from w w w .jav a 2s .co m*/ var myarray1 = []; myarray1.push([1, 1.1, 1.2]); myarray1.push([0.1, 0.2, 0.3]); var myarray2 = []; for (var i = 0; i < myarray1.length; i++) { myarray2.push(myarray1[i]); } console.log(myarray2) } </script> </head> <body> </body> </html>