IT lexicon › Programming › Function

Function

Programming På svenska → Updated: 2026-05-23

Reusable block of code with a name, parameters and (usually) a return value.

The smallest unit of code organisation. Best practice: small functions (ideally one thing), descriptive names. Different from "method" (function attached to a class) only by terminology in many languages.

← Back to the lexicon