wiki/content/20201008090449-method_definition.md

17 lines
198 B
Markdown
Raw Normal View History

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