Skip to content

ishanpandey-uipath/functional-programming

Repository files navigation

JavaScript is a multi use language

  • OOP
  • Functional way

With JS, you can use functional programming techniques in code that follow OOP paradigm. And you can use objects in code that follow FP paradigm.

Eric Elliott - "Functional programming is the process of building software by composing pure functions, avoiding shared state, mutable data and side effects." "FP is declarative than imperative, and application state flows through pure functions"

Functional Programming :-

  1. Avoids side-effects
  2. Avoids Mutations
  3. Avoids shared state
  4. Uses pure functions
  5. Uses Function compositions
  6. Use declarative code rather than imperative code.

Understand each of these terms, and understand principles and techniques for FP:-

  1. JS was not just written for FP approach. At times, you should use short-cut with functional approach. Since JS does not do very well in certain things that FP approach has.

  2. Avoiding Side effects by using Pure functions:- a.

About

Functional Programming in JS

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published