var student = { name: "John Doe", marks : 400, subject : { sub1 : "maths", sub2 : "english" } } console.log("Student studies" + student.subject.sub1 + " and " + student.subject.sub2);
var student = { name: "John Doe", marks : 400, subject : { sub1 : "maths", sub2 : "english" } } console.log("Student studies" + student.subject.sub1 + " and " + student.subject.sub2);