Question 25
Which of the following shows the correct output if the javascript program written below is executed?
let num = 50
const a = { num : 10, func : function (num) { console.log("Function A:", this.num) }}
const b = { num : 20, func : function () { console.log("Function B:", this.num) a.func.bind(this)(num = 40) }}
b.func.apply(a, [40])