Function

/ˈfʌŋkʃən/ noun

Definition

A reusable block of code that performs a specific task and can accept inputs (parameters) and optionally return a result. Functions help organize code into manageable, testable pieces that can be called multiple times.

Etymology

From Latin 'functio' meaning 'performance' or 'execution.' Mathematical functions, which map inputs to outputs, provided the conceptual foundation when programming languages adopted the term in the 1950s. The programming meaning expanded to include any callable code block, not just mathematical operations.

Kelly Says

Functions are like recipes in a cookbook - you write the instructions once, but you can follow that same recipe whenever you need to make that dish. Just like recipes can have variations (add more salt), functions can have different inputs but follow the same steps!

Related Words

Explore More Words

Get the Word Orb API

Complete word intelligence in one call. Free tier — 50 lookups/day.