Please refer - https://jsfiddle.net/ta2u2z9a/
var o = {
x: 6
};
function a() {
this.x = 3;
this.y = function() {
alert(this.x)
}
}
var a1 = new a();
a1.y.call(); //shouldn't it alert 3?
a1.y.call(o) //is alerting 6, correct!
Why is the first alert, alerting undefined? shouldn't it alert 3?