Explain how this program works.. | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
25th Apr 2017, 4:04 PM
Aman Karnati
Aman Karnati - avatar
2 Réponses
+ 11
The program is printing 11 in base 16. (hexadecimal) The parseInt() method's first parameter takes a string and the second parameter the base for it to be converted.
25th Apr 2017, 4:10 PM
Ulisses Cruz
Ulisses Cruz - avatar
0
your converting "11" into an integer first.. the radix is another word for base. Radix is 2 for binary, 10 for decimal, 16 for hexadecimal.. you have 16 so hexadecimal. the Hexadecimal of 11 is 17
25th Apr 2017, 4:14 PM
LordHill
LordHill - avatar