function variable

noun
UK /ˈfʌŋkʃən ˈveəriəbl/
US /ˈfʌŋkʃən ˈveriəbl/

A function variable is a name that holds a piece of code you can run later.

We stored the greeting in a function variable so we could call it whenever we needed it.


OTHER MEANINGS

2. In math, a variable that stands for a function rather than a number.

In the equation, f is a function variable that maps each input to an output.

3. A variable whose value is a function object in a programming language.

She assigned an anonymous function to the function variable to sort the list.

4. A placeholder in a formula that represents a whole rule or mapping.

The teacher explained that the function variable g could stand for any rule we choose.