Last active
December 21, 2021 06:07
-
-
Save Rouhollah/f41b12f4e67b2290428d95e7a1288836 to your computer and use it in GitHub Desktop.
create random color with javascript - jquery
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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