Overview

JavaScript is a flexible language and can be classified into multiple paradigms (types) including oop, fp, and others. Js is not a pure fp language (and not pure oop).

We'll do a mix of types, picking the right tool for the job.

Concepts

As beginners, we should just quickly scan the concepts and circle back later (the following examples are more important).

A good definition of the concept of fp is here: wiki. Think of fp as "function-oriented programming".

Pure fp involves using functions where:


Js coders typically do not aim for pure fp, but rather use these ideas for general guidance.

We have already done some fp and now we'll do some more.

Gotchas


Gotchas are listed on this page...

Examples

Here is a lab to help you get started "playing around" with fp: