Question 25
Consider the following JavaScript program, and predict the output if executed.
var first = 1obj1 = { 'first' : 2, 'second' : function some () { console.log(this.first) }}obj2 = { 'first' : 3, 'second' : function some () { this.second() }}obj2.second.call(obj1)1
2
3
None of these