var a = 1;
function func() {
var a = 2;
console.log(this.a);
}
func();
var b = 3;
function funx() {
console.log(this.b);
}
var obj = {
b: 4,
funx
}
obj.funx();
var aa = 15
function test() {
console.log(this.aa)
}
var obj = {
aa: 2,
test
}
var obj0 = {
aa: 3,
obj
}
obj0.obj.test()
var d = 1
function test() {
console.log(this.d)
}
var obj = {
d: 2,
test
}
var testCopy = obj.test
testCopy();
var e = 7;
function test1() {
console.log(this.e)
}
var obj = {
e: 8,
test1
}
var testCopy = obj.test1
testCopy.call(obj);
var e = 9;
function Fu(e) {
this.e = e
}
var rr = new Fu(10);
console.log(rr.e);
var u = 11;
var test = () => {
console.log(this.u);
}
var obj = {
u: 18,
test
}
obj.test();