Objects

Lesson 19
Author : Afrixi
Last Updated : October, 2017


Table of Content

Code

Copyvar student = {
     name: "Jim",
     major: "Business",
     age: 19,
     gpa: 2.5
};

student.name = "Andy"
document.write( student.name + "<br>" );
document.write( student.major + "<br>" );
document.write( student.gpa + "<br>" );