DEV Community

ES5 Function To ES6 Arrow Function

Sachin Sarawgi on June 14, 2020

With the introduction to ES6, there are many new features added in JavaScript one of them is Arrow Function. In this blog, we will discuss in deta...
Collapse
 
basseyisrael profile image
BasseyIsrael

Thanks a lot for this.... I'm a python developer and I'm new to JS.
I've not really taken a dive into ES6 but I noticed the arrow notation in some people's codes.
This made me understand it well enough. 👍

Collapse
 
blindfish3 profile image
Ben Calder

If you've already got experience with another language I highly recommend You don't know JS as a really good resource to understanding the language. You get to skip all the usual beginner stuff ;)

Collapse
 
basseyisrael profile image
BasseyIsrael

Wow.
Thank You very much for this Ben Calder.
This is a very good one!

Collapse
 
sachinsarawgi profile image
Sachin Sarawgi

Thanks, BasseyIsrael for this comment.....this will keep me motivated to write more and do more for the community.

Collapse
 
basseyisrael profile image
BasseyIsrael

You're very welcome Sachin Sarawgi.
I look forward to learning more from you.

Collapse
 
blindfish3 profile image
Ben Calder

It's important to note that arrow functions also serve another more significant purpose: they preserve the 'this' from the outer scope

Collapse
 
sachinsarawgi profile image
Sachin Sarawgi

A very important point thanks for mentioning it Ben.