SOURCE

let person = {
    name: "张三",
    age: 23,
    job: "前端程序员",
    sayName: function () {
        console.log(this.name);
    }
};
console.log(person);
person.sayName();
console 命令行工具 X clear

                    
>
console