Question 6
Consider the below javascript program.
const obj = { a: 10, b() { return this.a; }};
const c = obj.b;const d = obj.b.bind(obj);
console.log(c(), d());What will be the output of the above program?
10 10
undefined 10
10 undefined
undefined undefined
Error