Question 8
What will be logged on to the console, if the program written below is executed?
const obj1 = { x: 10, y: 20 }, obj2 = { x: 30, y: 40 }
function area() { return this.x * this.y}
function test() { return area.call(obj2)}
console.log(test.call(obj1), test.call(obj2))200, 1200
1200, 200
1200, 1200
200, 200