What will be the radix value of the parseInt() method when the string begins with any other value other than 0x and 0?

What will be the radix value of the parseInt() method when the string begins with any other value other than 0x and 0?
A. 8
B. 9
C. 10
D. 11
 
Answer: c
Explanation: The radix value will be 10 when the string of the method parseInt() begins with any other value other than 0x and 0. If the string begins with 0x, then the radix value will be 16.
 

Tìm kiếm

Back
Top