Arrow Functions and `this`
Arrow functions and
Arrow functions don’t follow any of the traditional rules of
Instead, arrow functions get their
this binding from their scope. We’ve discussed five rules to
this-binding. We can now add a 6th. Here they all are.
1 - If the
new keyword is used when calling the function,
this inside the function is a brand new object.