Update randomHexColorCode.md
This commit is contained in:
@ -10,8 +10,7 @@ const randomHexColorCode = () => {
|
|||||||
while(color.length < 7) color += '0123456789ABCDEF'[Math.floor(Math.random() * 16)];
|
while(color.length < 7) color += '0123456789ABCDEF'[Math.floor(Math.random() * 16)];
|
||||||
return color;
|
return color;
|
||||||
}
|
}
|
||||||
|
|
||||||
// randomHexColorCode() -> "#e34155"
|
// randomHexColorCode() -> "#e34155"
|
||||||
// randomHexColorCode() -> "#fd73a6"
|
// randomHexColorCode() -> "#fd73a6"
|
||||||
// randomHexColorCode() -> "#4144c6"
|
// randomHexColorCode() -> "#4144c6"
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user