const player = {
name : "canyi",
sayHello: function(other_name){
console.log("hello!" + other_name);
}
};
console.log(player.name) //canyi
player.sayHello("check"); //hello
const player = {
name : "canyi",
sayHello: function(other_name){
console.log("hello!" + other_name);
}
};
console.log(player.name) //canyi
player.sayHello("check"); //hello