DEV Community

Cover image for JavaScript: 3 key differences between Arrow Functions and Normal Functions
Ankit Tanna
Ankit Tanna

Posted on

JavaScript: 3 key differences between Arrow Functions and Normal Functions

Hello Everyone,

This is my first post and I wish to write something about "Arrow Functions". I wanted to show the difference between The Arrow Functions and The Normal Functions!

Often, when asked during a client interview or a job interview, people tend to give maximum ONE difference. But in actual, there are 3 Major differences:

  1. "this" - Arrow Functions do not have their own context

  2. "arguments" - Unable to access "arguments" inside function to know what arguments are passed to the function

  3. "Class" - Cannot used Arrow Functions as a class as arrow functions do not have a constructor/don't behave like a constructor

If you want to see the hands-on on this, have a look at this short video:

Please leave your feedback on what do you think. Thank you.

Top comments (0)