--- id: b7da7f6f-eb57-4303-bdcb-45397afbf5dc title: JavaScript Classes Method Definition --- # Example ``` javascript const obj = { foo() { }, bar() { this.foo(); }, } ```