Just watched in interesting video on YouTube called
Learning Functional Programming with JavaScript from Anjana Vakil. I found it an interesting introduction for functional programming. At the end, she introduced an article by Mary Rose called An introduction to functional programming, which teaches the concepts through code blocks.
Some of the basic building blocks of functional programming are:
- Data is immutable -- don't change data.
- Use first class functions: They should only operate on data passed in and not change anything outside of that function.
- Do not use loops -- use functions instead.