- The
this
keyword in JavaScript refers to an object. The object that is referred to by thethis
carries the currently running program. - When a regular function is being referred to,
this
refers to the global object. - In the case of an event, the element that received the event is referred to as
this
. call()
,apply()
, andbind()
methods can all refer to any object usingthis
.- A regular function will always define its
this
value. - The
this
keyword is handled differently by arrow functions. Since it lacks a context of its own, they are unable to define its own. this
is based on the enclosing lexical scope for arrow functions.- In regular functions, the object that is called the function was represented by the
this
keyword.