I know how to create a basic array in JS like the following:
$myArray = array(
'part1' => array('id' => 75, 'name' => 'blue_part'),
'part2' => array('id' => 14, 'name' => 'green_part'),
'part3' => array('id' => 40, 'name' => 'red_part'),
How can I add the multidimensionality to the JS array?
var myArray = new Array('part1', 'part2', 'part3');
Thanks for all ideas.