how to generate random hex color in js¨ code example Example: js random hex color '#'+Math.floor(Math.random()*16777215).toString(16);