generate random color code javascript code example
Example 1: javascript random color
'#'+(0x1000000+(Math.random())*0xffffff).toString(16).substr(1,6)
Example 2: javascript random color
var r = () => Math.random() * 256 >> 0;
var color = `rgb(${r()}, ${r()}, ${r()})`;