DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
Generate a Random Hex Color
const hexColor = () => "#" + Math.floor(Math.random() * 0xffffff).toString(16).padEnd(6, '0')
Source by livecodestream.dev #
PREVIOUS
NEXT
Tagged:
#Generate
#Random
#Hex
#Color
ADD COMMENT
Topic
COMMENT
Name
1+5 =
Submit