Integers : Integer : Number Data Type JAVASCRIPT TUTORIALS


JAVASCRIPT TUTORIALS » Number Data Type » Integer »

 

Integers











Integers are numbers that contain no fractional parts.

Integers are numbers that can be positive or negative.

Integers are numbers that can be formatted as a decimal, octal, or hexadecimal in JavaScript.

Decimal integers is made up of numbers from 0 to 9 and cannot begin with leading zeros.

Octal integers, also referred to as base-8, must begin with a leading zero. Each digit following the leading zero can be 0 to 7.

Hexadecimal integers, also referred to as base-16, must begin with 0x or 0X. Each digit following the leading zero can be 0 through 15, but 10 through 15 are represented by the letters a (or A) through f (or F).





HTML code for linking to this page:

Follow Navioo On Twitter

JAVASCRIPT TUTORIALS

 Navioo Number Data Type
» Integer