wiki/content/20201008090449-method_definition.md

198 B

id title
b7da7f6f-eb57-4303-bdcb-45397afbf5dc JavaScript Classes Method Definition

Example

const obj = {
    foo() {
    },
    bar() {
        this.foo();
    },
}