The main difference is that a function declaration is bound to its execution context while an arrow function is bound to its lexical scope (this & arguments). E.g. the difference is how this is controlled and it is especially important in react components as we don’t need to bind context anymore when passing down event handlers for instance.
Regards, Nitesh Bavishiya
You must be logged in to reply to this thread.Please login or register. Registration is 100% free.
GET FREE CONSULTATION
Call Us Now For Free Consultation97370 05566
Our experts listen to you patiently and suggest you the right course after conducting a personality profile test. Register your interest below to schedule personality profile test for you.