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.

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

Updated