DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
javascript random color
'#'+Math.floor(Math.random()*0xffffff).toString(16).padStart(6,'0');
Source by dev.to #
PREVIOUS
NEXT
Tagged:
#javascript
#random
#color
ADD COMMENT
Topic
COMMENT
Name
8+6 =
Submit