I have written a loop for the following "ducumentum" Array which is in employees var... but I am getting strange result, it is printing only the last one "Nagesh".

Am I doing anything wrong here...? please help...

var employees = {"documentum":[

function employeesList(){
for(i=0; i<employees.documentum.length; i++){
var list = employees.documentum[i].firstName;

window.onload = employeesList;

Thank you so much for help...