Get random color JavaScript

> Generate random color

Description
Generate a random color.


function randomColor() {
    return '#' + Math.floor(Math.random() * 16777215).toString(16);
}
HEX FFFFFF = DEC 16777215
SEE ALSO