DEV Community

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

Collapse
 
thecodepixi profile image
Emmy | Pixi

Thanks, Khauri! I actually didn't know about the 0x thing. That's super cool! And ++ to the Math.floor() point. It's one of those things I always forget. I used Math.round() in its place but do know that that's not the best solution.