MCQs>IT & Programming>JavaScript>var self=this; self.color='red'; self.getColor=function(){ return this.color; } self.getColor.call({color:'white'})); What is the return value?
JavaScript MCQs
var self=this; self.color="red"; self.getColor=function(){ return this.color; } self.getColor.call({color:"white"})); What is the return value?
Answer
Correct Answer: white
Explanation:
Note: This Question is unanswered, help us to find answer for this one