window.val = 1;
var obj={
val: 2,
dbl: function () {
this.val *= 2;
val *= 2;
console. log("val:", val) ;
console. log( "this.val:", this.val) ;
}
};
//
obj.dbl();
var func = obj.dbl;
func();
this is a question I know to run in console to answer, and the analysis this I want points to the question.