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, ...