Vidyalelo
JavaScript · Q13

Basic And Variables

Programming · JavaScript · question 13

Q13

A hexadecimal literal begins with

A.
00
B.
0x
C.
0X
D.
Both 0x and 0X
Answer

Answer: Option D

Solution

Answer: Option D
Solution:
Generally, X or x denotes hexadecimal values. So, any integer literal that begins with 0X or 0x denotes a hexadecimal number.