Numbers

Numbers in JavaScript

Unlike other programming languages, JavaScript generally uses the Number data type for numeric data.

Commas and periods are not allowed for grouping numbers. Example:

10542 not 10,542 or 10.542 (which means 10 plus a fraction)

Children
  1. Infinity
  2. NaN