In JavaScript, this operator always refers to the object, which is invoking the function being executed. So, if the function is currently being used as an event handler, this operator will refer to the node which fired the event.

BY Best Interview Question ON 20 Jun 2020

Suggest An Answer