DEV Community

loading...

Discussion on: What the Hex!? (how to generate random hex color codes in javascript)

Collapse
xanderyzwich profile image
Corey McCarty

I believe that there is a function to pad the left side of the string with zeroes up to a given length (or you could do it yourself)