// global scope
var sayMyFavoriteColor = function(adj){
return 'My ' + adj + ' color is ' + this.favoriteColor; + '!'
};
var callFnTest = function (opts) {
return sayMyFavoriteColor.call(this, opts);
};
this.favoriteColor = 'Brown'; //adding a global variable to window
i.e. var favoriteColor = 'Brown'
callFnTest('most disliked')
"My most disliked color is Brown"
My question is because we are passing this
to call it is pointing to the window, correct?