# Number

*noun*

say it: **“NUM-ber”** **/ˈnʌmbər/**

JavaScript's type for numbers. Whole numbers like 3 and decimals like 4.5 are both the same number type.

## What is **Number** in JavaScript?

**Number** — JavaScript's main numeric type for both whole and fractional numbers.

```javascript
const temperature = 72.5;
```

## In a sentence

- “The price 4.5 and the quantity 2 are both of type **number**, so I can multiply them.”

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

Updated: November 9, 2026

Source: https://www.ask-codey.com/glossary/number
