Skip to content

Instantly share code, notes, and snippets.

@Rouhollah
Last active December 21, 2021 06:07
Show Gist options
  • Save Rouhollah/f41b12f4e67b2290428d95e7a1288836 to your computer and use it in GitHub Desktop.
Save Rouhollah/f41b12f4e67b2290428d95e7a1288836 to your computer and use it in GitHub Desktop.
create random color with javascript - jquery
var color=$(Math.random().toString(16).slice(2, 8).padEnd(6, '0'));
console.log(color.selector);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment