Chapter 5

Functional Programming

Learning Objectives

By the end of this chapter, you will be able to do the following:

  • Explain functional programming
  • Implement the key concepts of functional programming
  • Apply functional programming concepts to your code
  • Build new code bases in the functional programming style

This chapter explains types of programming, including Object-oriented programming and Functional Programming, and how to work with different types of functions.


In the first chapter, we covered many of the new and powerful features released in ES6. We discussed the evolution of JavaScript and highlighted the key additions in ES6. We discussed scope rules, variable declaration, arrow functions, template literals, enhanced ...

Get Advanced JavaScript now with O’Reilly online learning.

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