Pure Functions

  1. Output is purely dependent on Inputs.
  2. No side effects (Doesn't change variables outside the scope of the function)
  3. Doesn't use global variables or variables whose scope is not the function itself.

Referenced in:

All notes