© Raju Gandhi 2019
Raju GandhiJavaScript Nexthttps://doi.org/10.1007/978-1-4842-5394-6_2

2. Lambdas with Arrow Functions

Raju Gandhi
Columbus, OH, USA
Functions are used everywhere in JavaScript. A face-lift to make their syntax succinct, and consequently easier to use and understand, was long overdue.
JavaScript is, at its core, a functional programming language. It supports functions as first-class citizens, in that they are like any other type in the language. Functions can be assigned to variables, supplied as arguments to other functions, and be return-ed from functions just like we would any other type in JavaScript. JavaScript is also single-threaded. Well-designed APIs and libraries that involve long-running operations work asynchronously, ...

Get JavaScript Next: Your Complete Guide to the New Features Introduced in JavaScript, Starting from ES6 to ES9 now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.