Categories
Uncategorized

Random Color

snippet of code to generate a random color using Javascript:

        '#' +
        new Array(6)
          .fill(0)
          .map(() => '0123456789abcdef'[Math.floor(Math.random() * 16)])
          .join('')