JavaScript - Decimal literal

Decimal literals are also known as decimal constants. we can describe it from the mathematics known Arabic digits from 0 to 9.

decimal literal

Description

 1234
Data:
  • number -

Output

Examples

JavaScript

Decimal literal the possible of use:
x = 10;         // x = 10
y = 4 * 10;     // y = 40
if (x>5)
  y = x / 0xa;  // y = 1

JavaScript

Other pieces of example codes:
~ 2
5 < 10
z = 5
x =0
(i & j) < 128
a<100

You can find it in the following collections: constants
Languages: en hu cz sk