mirror of
https://github.com/alrayyes/wiki.git
synced 2024-11-26 21:36:23 +00:00
16 lines
198 B
Markdown
16 lines
198 B
Markdown
---
|
|
id: b7da7f6f-eb57-4303-bdcb-45397afbf5dc
|
|
title: JavaScript Classes Method Definition
|
|
---
|
|
|
|
# Example
|
|
|
|
``` javascript
|
|
const obj = {
|
|
foo() {
|
|
},
|
|
bar() {
|
|
this.foo();
|
|
},
|
|
}
|
|
```
|