DEV Community

Discussion on: Two type of functions and there difference

Collapse
 
dance2die profile image
Sung M. Kim

I've recently answered a question for the differences in length on StackOverflow.

stackoverflow.com/a/57327565/4035

The answer you are looking for is the section labeled, Following up with the comment. but you might want to read the whole answer.

The gist is due to the arrow function syntax not creating this of its own.