728x90 반응형 Funtion1 [기본문법 5] Function with JS const player = { name: "sunho", sayHello: function (otherPersonName) { console.log("hello! " + otherPersonName + "nice to meet you"); }, }; console.log(player.name); player.sayHello('nico'); 2023. 2. 8. 이전 1 다음 728x90 반응형