JavaScript program for array of objects on July 04, 2021 Get link Facebook X Pinterest Email Other Apps var student=[ {name:"Ravi", age: 21}, {name:"Ram", age: 13}, {name:"Gaurav", age: 18},]for(var a=0;a<student.length;a++ ){ document.write(student[a].name+" "+student[a].age+"<br>")}Output Comments
Comments
Post a Comment