What is an arrow function? #

ES6 introduced fat arrows (=>) as a way to declare functions. This is how we would normally declare a function in ES5:

Create a free account to view this lesson.

By signing up, you agree to Educative's Terms of Service and Privacy Policy