M

Mr. Dubey • 100.28K Points
Coach

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
  • Correct Answer - Option(A)
  • Views: 20
  • Filed under category JavaScript

Explanation by: Mr. Dubey
'this' inside a method refers to the object that owns the method.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.


Question analytics