wiki/content/20201008090449-method_definition.md

18 lines
215 B
Markdown
Raw Permalink Normal View History

2024-05-06 20:40:05 +00:00
---
2024-10-30 17:34:11 +00:00
date: 2020-10-08
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();
},
}
```