📜  javascript代码示例中的对象

📅  最后修改于: 2022-03-11 15:02:37.180000             🧑  作者: Mango

代码示例6
var student = {                 // object name
firstName:"Jane",           // list of properties and values
lastName:"Doe",
age:18,
height:170,
fullName : function() {     // object function
   return this.firstName + " " + this.lastName;
}
};