var myNumber = {
value: 1,
add: function(i){
var helper = function(i){
console.log(this);
this.value += i;
}
helper(i);
}
}
myNumber.add(1);
Why does this this point to window?? The add method called by the myNumber object, why doesn"t the this in the method point to the myNumber object?