Q. What does the 'this' keyword refer to in a method of an object?

  • (A) The object the method belongs to
  • (B) The global object
  • (C) The previous function
  • (D) The constructor
πŸ’¬ Discuss
βœ… Correct Answer: (A) The object the method belongs to
Explanation: 'this' inside a method refers to the object that owns the method.
Explanation by: Mr. Dubey
'this' inside a method refers to the object that owns the method.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
107
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
82%
Success Rate