Home / Javascript Tips Generated By ChatGPT / Using Object Methods in Javascript Define and call functions (methods) within objects. Source Code let person = { name: "John", greet: function() { console.log("Hello, " + this.name); } }; person.greet(); // "Hello, John"