JS: Creation of Array and Object
Create Array called as university
Store all the university details
Store the colleges belongs to the university.
Store the students belongs to the colleges
Example:
var uni = [
{
universityName: "A",
year: 2000,
colleges: [
{
collegeName: "a",
year: 2005,
students: [
{
firstname: "",
lastName: "",
age: ""
},
{
firstname: "",
lastName: "",
age: ""
}
]
},
{
collegeName: "a",
year: 2005,
students: [
{
firstname: "",
lastName: "",
age: ""
},
{
firstname: "",
lastName: "",
age: ""
}
]
}
]
}