When you use the "this" keyword within a method, it refers to _________.

  • The method itself
  • The global object
  • The parent function
  • The calling object
When you use the "this" keyword within a method in JavaScript, it refers to the calling object. The calling object is the object on which the method is invoked, and "this" is a reference to that object, allowing you to access its properties and methods.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *