Functional JavaScript Programming 1 - Pure Functions (WITH EXAMPLE)

preview_player
Показать описание

How to write Pure Functions in JavaScript?
How to get started in Functional Programming on JavaScript?

In this video tutorial, I talk about the basics of Functional Programming by bringing in Pure Functions right away. What are Pure Functions? Find out in this video.

PURE FUNCTIONS:
===============

1. No side effects
2. Same output for same input
3. Highly independent
4. Reusable again and again = building blocks of code
5. Outside variables and global states are not used
6. Immutability - Must not mutate the variables passed to it
7. No reliance on state or environment = Lets us run anywhere
8. True interpretation of mathematical term 'function'
9. Independency = Parallel Processing = Research applications

Pure Functions in Functional JavaScript Programming by Rocky DeRaze (WITH EXAMPLE)
Рекомендации по теме