JS Array of Objects

 
<!DOCTYPE html>
<html>
<head>
  <title>JavaScript</title>
  <script>
    var student = [
      {name : 'Ram', age : 15},
      {name : 'Karan', age : 13},
      {name : 'Rahul', age : 14},
    ];

    console.log(student);
    for(var a= 0;a < student.length;a++){
      document.write(student[a].name + " " + student[a].age + "<br>");
    }
  </script>
</head>
<body>
</body>
</html>