Functional programming(FP) is a programming paradigm where we think of code as a function. How fun is that everything is a function. Functional programming is not a new concept but it is gaining its popularity, Even Object-oriented programming languages are trying to have functional concepts. For eg: Lambda functions in Java.

Functional programming is a bit different from the Object-oriented programming we generally see. Some various patterns and concepts are practiced in Functional programming which gives it a unique approach for solving problems. Various programming languages are purely functional such as Elixir, Haskell, Clojure, and Scala, whereas there are programming languages that take inspiration or Functional concepts from purely functional languages such as Javascript, Python, or Ruby.

Looking into the history of Functional programming it is derived from Lambda Calculus in the late 1930s that is a formal system in mathematical logic for expressing computation based on function abstraction and application using variable binding and substitution. But how is it related to Functional programming? Well, we use similar concepts of function abstraction and variable binding to find solutions to the problem definition.

So let’s dive into Functional programming concepts.

#functional-programming #javascript #tutorial #javascript-tips #programming

Functional Programming in JS
1.25 GEEK