DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
Random HEX color
const hexColor = () => `#${Math.floor(Math.random() * 0xffffff).toString(16).padEnd(6, "0")}`;
Source by devdojo.com #
PREVIOUS
NEXT
Tagged:
#Random
#HEX
#color
ADD COMMENT
Topic
COMMENT
Name
4+4 =
Submit