# Parameter

*noun*

say it: **“puh-RAM-ih-ter”** **/pəˈræmɪtər/** or **“puh-RAM-uh-ter”** **/pəˈræmɪtər/**

A name in a JavaScript function's parentheses that stands for a value the function will be given when it's called.

## 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);
```

## In a sentence

- “The **parameter** drinkName lets one greet function work for any drink on the menu.”
- “The function describePet(pet) has one **parameter**, pet, and it holds whichever pet I pass in.”

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

Updated: November 9, 2026

## In other subjects

- [Parameter in PowerShell](https://www.ask-codey.com/glossary/parameter-powershell)
- [Parameter in Python](https://www.ask-codey.com/glossary/parameter)
- [Parameter in Software Development](https://www.ask-codey.com/glossary/parameter-software-development)

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