# Parameter

A name in a function definition for a value the function needs.

## What is **Parameter** in JavaScript?

**Parameter** — A name in a function definition for a value the function needs.

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

const orderTotal = total(4, 3);
```

Level: Apprentice · [More JavaScript terms at this level](https://www.ask-codey.com/glossary/subjects/javascript/apprentice)

Updated: September 27, 2026

Source: https://www.ask-codey.com/glossary/parameter-javascript-2
