Q:

Extract values from a multidimensional arrays with js

What is the easiest to understand solution to get out the values as follows:
Bill, Smith, 32
Sarah, Lord, 28

I only got this far:
HTML 
<a href="#" onclick="displayEmployees();">displayEmployees</a>
Javascript
function displayEmployees() {
var employees = new Array();
employees['firstName'] = new Array('Bill','Sarah','Elizabeth','David','Robert');
employees['lastName'] = new Array('Smith','Lord','Crayford','Clark','Robinson');
employees['age'] = new Array('32','28','20','54','18');
for(x in employees) {
    var value = employees[x]
    document.write(value + "<br />");
}

A:

You can do like this
var value;
for(x in employees['firstName']){
   value = employees['firstName'][x]+', '
          +employees['lastName'][x]+', '
          +employees['age'][x];

   document.write(value + "<br />");
}

The better way will be to create the employees array in other way, like this
employees = [{'firstName':'Bill','lastName':'Smith','age':32},
             {'firstName':'Sarah','lastName':'Lord','age':28},...];

var value;
for(x in employees){
   value = employees[x].join(', ');
   document.write(value + "<br />");
}

