Code Fellows Notes
Functional programming is a programming paradigm — a style of building the structure and elements of computer programs — that treats computation as the evaluation of mathematical functions and avoids changing-state and mutable data
The code’s definitely easier to test. We don’t need to mock anything.
When data is immutable, its state cannot change after it’s created. If you want to change an immutable object, you can’t. Instead, you create a new object with the new value.
Basically, if a function consistently yields the same result for the same input, it is referentially transparent.
Another JavaScript file
It allows us to include modules that exist in separate files. It reads a JavaScript file, executes the file and then returns the exports
object.