SOMBANK

Posted By: sbsombank
0 Views

Sam Solomon

While in ES5 ‘this’ referred to the parent of the function, in ES6, arrow functions use lexical scoping — ‘this’ refers to it’s current surrounding scope and no further. Thus the inner, and not to the object’s method or the object itself.