- Forums
- Javascipt
- Example Of Two Dimensional Array Javascript
this is an example script of how you can make a javascript array using the for loop. you can display the values of each element. [2230], Last Updated: Mon Jun 24, 2024
Webune Support
Mon Aug 02, 2010
0 Comments
729 Visits
Example Of Two Dimensional Array Javascript - this is an example script of how you can make a javascript array using the for loop. you can display the values of each element.
<script type="text/javascript" language="javascript">
var cars = new Array();
cars['z'] = '300zx';
cars['z'] += '350z';
for (i=0;i<cars['z'].length;i++)
document.write(cars['z'][i]);
</script>
DEMO