Functional JavaScript

What is functional programming? Functional programming is a programming paradigm, a way in which computer programs and languages are structured. If you've ever taken any math classes, functional programming can be seen as programming with mathematical functions. The output of a function f(x) is based only on the arguments…