Question: what is difference between function and arrow function in javascript?
Answer: Arrow functions are callable but not constructable If a function is constructable, it can be called with new, i.e. new User(). ... Functions created through function declarations / expressions are both constructable and callable. Arrow functions (and methods) are only callable.