Consider the following code:
function A() {} A.prototype.go = function() { console.log(this); //A { go=function()} var f = function() {
Because function f() is not called without any object reference. Try,
f()
f.apply(this);