Vidyalelo
JavaScript · Q20

Parsing, Benchmarking And Logging

Programming · JavaScript · question 20

Q20

What does it indicate when the radix value is 16?

A.
String begins with 0x
Answer
B.
String begins with 0
C.
String begins with 0P
D.
String begins with FF

Answer: Option A

Solution

Answer: Option A
Solution:
If the string begins with “0x”, the radix is 16 (hexadecimal).