DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
javascript generate random color
const generateRandomHexColor = () => `#${Math.floor(Math.random() * 0xffffff).toString(16)}`;
Source by tapajyoti-bose.medium.com #
PREVIOUS
NEXT
Tagged:
#javascript
#generate
#random
#color
ADD COMMENT
Topic
COMMENT
Name
2+8 =
Submit