7554425D-0054-440D-B95E-D2ABC13D62CD Created with sketchtool.
{body}
Your Saved Info Packages

View your saved Course or Program Packages containing pricing and detailed curriculum.

Speak with a Learning Advisor.

Have any questions? We'll call you.

Fill out the form below and a Learning Advisor will reach out at a time convenient for you.

Please pick a valid date and time between 9 AM and 8 PM eastern (Monday to Friday)

By clicking "Book a call," you accept our Terms and will also receive exclusive offers and updates about new courses, workshops and events.

JavaScript Tutorial

JavaScript Numbers

Ready to start your career in Development? Find out more about BrainStation's Web Development Bootcamp

Numerical information in JavaScript is represented by a data type called number. Whether the numerical value is a whole number, fraction or a number with decimal point precision, they are all collectively represented as a number data type.

```
const weight = 78.5;
const grades = 98;
const remainder = 80 % 4;

console.log(weight); // prints 78.5
console.log(grades); // prints 98
console.log(remainder); // 0

console.log(typeof weight); // prints number
console.log(typeof grades); // prints number
console.log(typeof remainder); // prints number
```

Infinity, -Infinity and NaN

Numbers can also be +Infinity, -Infinity or NaN (Not a Number) value based on the numerical calculations.

```
const value = 65 / 0;
const data = -65 / 0;
const result = ‘hello’ / 10;

console.log(value); // prints Infinity
console.log(data); // prints -Infinity
console.log(result); // prints NaN
```
Set Password

You already have an account with BrainStation, but you still need to set up a password.