S.no Arrow function Normal function
1. Introduced in ES6, it provides a concise way to write functions in the JavaScript. The context present inside arrow functions is statically or lexically defined. It’s a procedure to produce a set of statements that calculate a value or performs a task. We have to define a function in the scope from which we wish to call it, to use it.
BY Best Interview Question ON 25 Aug 2022