Vidyalelo
JavaScript · Q22

Parsing, Benchmarking And Logging

Programming · JavaScript · question 22

Q22

What will be the radix value of the parseInt() method when the string begins with 0?

A.
6
B.
7
C.
8
Answer
D.
9

Answer: Option C

Solution

Answer: Option C
Solution:
If the string begins with “0”, the radix is 8 (octal). This feature is deprecated.