function (code)

A function (also called a routine) is reusable code that provides instructions for performing an action, or creating an output based on input.