//"use strict";
console.log(this); // window
"use strict";
console.log(this); // window
//"use strict";
function test(){
console.log(this); // window
}
test();
"use strict";
function test(){
console.log(this); // undefined
}
test();
//"use strict";
var myobj = {
data: "my_str",
test: function(){
console.log(this); // myobj
}
};
myobj.test();
"use strict";
var myobj = {
data: "my_str",
test: function(){
console.log(this); // myobj
}
};
myobj.test();