# Function Declaration

*noun*

say it: **“FUNGK-shun dek-luh-RAY-shun”** **/ˈfʌŋkʃən ˌdɛkləˈreɪʃən/**

Creating a named JavaScript function with the function keyword.

## What is **Function Declaration** in JavaScript?

**Function Declaration** — A named function created with the function keyword as a statement.

```javascript
function total(price, quantity) {
    return price * quantity;
}
```

## In a sentence

- “The **function declaration** function addTax(price) { ... } can be called from anywhere in the file.”

Level: Apprentice · [More JavaScript terms at this level](https://www.ask-codey.com/glossary?category=javascript&level=2)

Updated: November 9, 2026

Source: https://www.ask-codey.com/glossary/function-declaration
