Functional JavaScript

The future of JavaScript will be functional. Indeed, many changes that were brought to the language in the last few years are allowing for easier and more efficient implementations when using functional programming techniques.

In this chapter, we will see how JavaScript is increasingly becoming a functional language and how this programming paradigm can be a vector for performance. We will learn how replacing overly complex code with simplified functional versions and how using immutability and tail-call optimization will help make JavaScript more efficient in the long run. Thus, we will cover the following points:

  • Simplifying functions
  • Functional programming techniques
  • More upcoming JavaScript features

Get Mastering The Faster Web with PHP, MySQL, and JavaScript now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.