Functional Programming is a programming paradigm where you mostly construct and structure your code using functions.
Features:
- First-class citizens functions: you can always insert functions inside a function without any restrictions present.
- A higher-order function: a function that gets a function as an argument.
- Function Composition: an act of composing/creating functions that allow you to further simplify and compress your functions by taking functions as an argument and return an output.
Benefits:
- It doesnโt have side-effects and itโs immutable
- Itโs clean, straightforward and KISS
Source: https://blog.bitsrc.io/functional-programming-in-javascript-how-and-why-94e7a97343b
Top comments (2)
Hi Mariusz.
We encourage the entire article to be published on DEV.to (if you have proper rights), with a linkback if appropriate. Otherwise, we recommend original material, such as an original commentary on the article.
From the Terms of Use:
Posts that are simply intended to encourage readers to view an external resource are discouraged.
Thank you.
Hi Sung,
thanks a lot for info. Didn't have any idea, nor bad intentions.
I was actually missing some sort of tldr, as more and more content is made day by day, and it's harder to decide what's worth the attention.
Everyone then is welcome to join my FB group with React TLDR;
facebook.com/groups/2396587880554412/
Again, thanks for the reminder. Won't happen again.
Cheers!