function declaration

noun
UK /ˈfʌŋkʃən ˌdekləˈreɪʃən/
US /ˈfʌŋkʃən ˌdekləˈreɪʃən/

A function declaration is a line of code that tells the computer the name of a function and what it does.

The teacher showed us how to write a function declaration before using the function in our program.


OTHER MEANINGS

2. In some programming languages, a statement that announces a function's name and parameters before its full body is written.

The function declaration at the top of the file let other parts of the program call it early.

3. A formal announcement or statement that something is a function, especially in mathematics or logic.

The function declaration in the math paper defined the rule for every input value.

4. The act of officially stating that an event or activity will be a function, such as a ceremony.

The committee made a function declaration for the school's anniversary celebration.