Loading…

What is the difference between Arrow function and normal function?

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.

Suggest An Answer

No suggestions avaliable!

Latest post from Javascript interview questions

Ask Question