• Cursussen
  • Code Compiler
  • Discussiëren
  • Prijzen
  • Teams
Menu
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

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

Heb je vaak vragen zoals deze?

Leer efficiënter, gratis:

  • Inleiding tot Python

    7,1 miljoen leerlingen

  • Inleiding tot Java

    4,7 miljoen leerlingen

  • Inleiding tot C

    1,5 miljoen leerlingen

  • Inleiding tot HTML

    7,5 miljoen leerlingen

Bekijk alle cursussen
Populair vandaag
Is it possible to convert .zip file to apk? If yes, how??
1 Votes
I think the heart system is ridiculous, 5 hearts that refill after like 5 hours? That is really just crazy to me.
1 Votes
Why can’t I use double “ in python?
0 Votes
What do you think of this code and what are your suggestions for developing and modifying it?, How can I develop myself more?
0 Votes
Coding for Cybersecurity
0 Votes
Pointers in c#
0 Votes
2 cases not correct what's the problem
1 Votes
You’re free to give me your advice! 🚨
0 Votes
Salut tout le monde
1 Votes
How can i isntall modules
0 Votes