var name = "the Window.";
var object = {
name:"Object",
getName: function(){
return this.name;
}
}
(object.getName)(); //"Object"
(object.getName = object.getName)(); //"the Window"
I run this code, and it return "the Window", while i think it should be "Object".Please tell me why? thanks.