JavaScript - Hexadecimal literal

Hexadecimal integer constant, also known as base 16 constant. it is from combination of following hexadecimal digits: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, a/A, b/B, c/C, d/D, e/E, f/F

hexadecimal literal

Description

 0xA12F

Output

Examples

JavaScript

Hexadecimal literal the possible of use:
x = 0x1234;       // x = 4660
y = 4 * 0xff;     // y = 1020
if (x>0xabc)
  y = x / 0xa;    // y = 466

JavaScript

Other pieces of example codes:
0xAC ^ k
0xabc
0x0fa
i / 0x0a
i * 0xFF
0xA >> 2

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