this
: "arrow functions".
Arrow functions also make higher order functions much easier to work with.this
, arguments
, super
, or new.target
. When this
is used inside an arrow function JavaScript uses the this
from the outer scope. Consider the following example:this
is undefined inside the anonymous function.this
inside the arrow function refers to the instance variable.arguments
variable, which can be confusing to veteran JavaScript programmers. super
and new.target
are also scoped from the outer enclosure.