Generate random color hex

Simple example of generating a random color hex.
var randomColor = "#"+Math.random().toString(16).slice(-6);

console.log("Your random color is - " + randomColor);

Responses

0 Replies