Why this bouth cases are not working? So I'm not so clear understand the logic of bind and arrow funcs, but I study them already. It would be great if you explaine me my problems on these cases.
Thank you
First case:
const obj = {
a: 42,
say: function() {
console.log(this.a);
}
};
obj.say.bind(obj); // empty result
Second case:
const obj = {
a: 42,
say: () => {
console.log(this.a); //
}
};
obj.say(); // undefined