An Introduction to JavaScript/ES6 Arrow Functions

See the original posting on DZone Python

Arrow Functions help programmers to write declarative code with JavaScript. While everyone may have different feelings about this addition to Javascript/ES6, whatever camp you belong to you, you will have to deal with variations of Arrow Functions.

Why Do You Need to Know This?

Theoretically, you don’t need to learn to use arrow functions at all. You can do everything with good old "function" that you have been doing since you started writing JavaScript code. It could be advantageous in some cases, but you can get away without using them. But even if you don’t use it right now, you might end up using arrow functions in the future or you might have to maintain code that was written by someone who loved using arrow functions.