mirror of
https://github.com/alrayyes/wiki.git
synced 2024-11-25 04:56:23 +00:00
17 lines
215 B
Markdown
17 lines
215 B
Markdown
---
|
|
date: 2020-10-08
|
|
id: b7da7f6f-eb57-4303-bdcb-45397afbf5dc
|
|
title: JavaScript Classes Method Definition
|
|
---
|
|
|
|
# Example
|
|
|
|
``` javascript
|
|
const obj = {
|
|
foo() {
|
|
},
|
|
bar() {
|
|
this.foo();
|
|
},
|
|
}
|
|
```
|