Home
Public posts
API
Home
Public posts
API
Sign in with GitHub
Untitled.txt
JavaScript
Share
My Codes
Sign in
Editor
Preview
1
const obj = {
2
name: 'foo',
3
fn: () => {
4
console.log(this.name)
5
},
6
}
7
8
const obj2 = {
9
name: 'bar',
10
fn: obj.fn,
11
}
12
13
obj2.fn.call(obj)
Auto run
Auto clear
Run
Code will run automatically after changes.