次のように値を取得するための最も理解しやすいソリューションは何ですか。
Bill, Smith, 32
Sarah, Lord, 28
私はここまでしか得られませんでした:
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 />");
}