πŸ“Š JavaScript
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

πŸ‘οΈ
53
Total Visits
πŸ“½οΈ
9 mo ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
92%
Success Rate