var d = {};
d.a = 'myString';
d.b = function(a) {
console.log(this);
}
d.b.call(d.a);
In the above code, why does 'myString' show as an object when it's logged to the console?
Even typeof shows it's an object. And with each alphabet split.
I was trying to do
arr = ['myString','foo','bar']
console.log(arr.includes(this));
and that returns false as well. How can I get it as a string when using this?
