Functions - Programming

Functions are building blocks of most modern programming languages. Each program essentially can be a program itself, with its own variables, expressions, etc.

Advantages:

  1. Increase readability
  2. Reusability
  3. Allow modularized organization and testing.
  4. Encapsulation.