Function

A function produces a return value from a list of argument values.

Related concepts:  OperatorArgumentReturnMethod

Closest Wikipedia entry:  Subroutine — In computer programming, a subroutine is a sequence of program instructions that performs a specific task, packaged as a unit. This unit can then be used in programs wherever that particular task should be performed. Subroutines may be defined within programs, or separately in libraries that can be used by many programs.

Authoritative Definition

Wikipedia does not necessarily offer the best fitting definition of a concept. The exact meaning we attribute to the concept of Function is based on principled authoritative sources such as:

Misconceptions about Function
10 documented Misconceptions

Check Yourself

Stay up-to-date

Follow us on  twitter to hear about new misconceptions.