What is the difference between regular function and arrow function?
Feature Regular Function Arrow Function
this Dynamic Lexical (inherits from parent)
Syntax function
f(){}
(a,b)=>a+b
Can be used as
constructor
✅ ❌
Feature Regular Function Arrow Function
this Dynamic Lexical (inherits from parent)
Syntax function
f(){}
(a,b)=>a+b
Can be used as
constructor
✅ ❌