DE
Size: a a a
DE
В
DE
DE
DE
DE
E
DE
function A () {
this.b = () => {
this.a = 1
}
}
const a = new A()
a.b()
console.log(a)
DE
function A () {
this.b = function () {
this.a = 1
}
}
const a = new A()
a.b()
console.log(a)
DE
function A () {
const self = this
this.b = function () {
self.a = 1
}
}
const a = new A()
a.b()
console.log(a)
DE
DE
DE
DE
function A () {
return {
b: function () {
this.a = 1
},
}
}
const a = new A()
a.b()
console.log(a)
Ai
DE
class A {
b () {
this.a = 1
}
}
const a = new A()
a.b()
console.log(a)
DE
class A {
b () {
this.a = 1
}
}
const a = new A()
a.b()
console.log(a)
Ai
DE