
JavaScript is the first language to bring Functional Programming to the mainstream. At the same time, it offers a new way of doing Object Oriented Programming without classes and prototypes.Programming in a functional style means to use concepts such as first-class functions, closures, higher-order functions, partial application, currying, immutability or pure functions.Pure Functional Programming promises to make code easier to read, understand, test, debug or compose. Can it deliver its promise? If it can, can we build an application using only pure functions?Decorators are a tool for reusing common logic and creating variations of existing functions.Closure can encapsulate state. Multiple closures sharing the same private state can create flexible and encapsulated objects.Enjoy the book!
Author: Cristian Salcescu