Javascript Math getHex

Description

Javascript Math getHex


function getHex() {
  return Math.round(Math.random() * 16).toString(16);
}

function getBackgroundRandom() {
  return `#${getHex()}${getHex()}${getHex()}${getHex()}${getHex()}${getHex()}`;
}



PreviousNext

Related