0

Make all letters in the hex uppercase?

Is there a way to change all letters in the randomly generated hex to uppercase? https://code.sololearn.com/Wzq0B1J6w95q/?ref=app

19th Jul 2018, 3:17 AM
Daniel Cooper
Daniel Cooper - avatar
2 Respuestas
+ 5
Since the hex is a string, use toUpperCase(). In line 8, do num.toUpperCase()
19th Jul 2018, 3:21 AM
Jonathan Pizarra (JS Challenger)
Jonathan Pizarra (JS Challenger) - avatar
+ 1
19th Jul 2018, 5:00 AM
Daniel Cooper
Daniel Cooper - avatar