Pure functions

Another defining characteristic of functional programming is that of pure functions. Pure functions are those functions that do not have any side-effects. Calling a pure function will return a consistent output based on any given input. Pure functions will not modify any type of global state or initiate other operations of any kind, which means they do not have any direct or transient dependency on one another.