Functional Programming
Functional Programming Concepts
- What is functional programming?
- a programming paradigm treats computation as the evaluation of mathematical functions and avoids changing-state and mutable data
- What is a pure function and how do we know if something is a pure function?
- it returns the same result by given the same arguments
- it doesn’t cause any observable side effects
- What are the benefits of a pure function?
- only accessing parameters passed to the function that returns the same result based on the parameters
- What is immutability?
- unchanging over time or unable to be changed
- What is Referential transparency?
- a function consistently yields the same result for the same input
Node JS Tutorial for Beginners #6 - Modules and require()
- What is a module?
- What does the word ‘require’ do?
- used to load and cache JavaScript modules
- How do we bring another module into the file the we are working in?
- use
require(path to the module)
- What do we have to do to make a module available?
more on Functional Programming Concepts
more on Modules
<==Back