일반적인 function
function sayHell(){ }
object안 function
const player = { name : "nico", sayHello : function("lastName"){ console.log("hello" + lastName); } }; console.log(player.name); player.sayHello("kim"); //object안 function접근법