Fixed indentation
This commit is contained in:
@ -6,9 +6,9 @@ Use `Math.random` to generate a random number and limit that number to fall in b
|
|||||||
|
|
||||||
```js
|
```js
|
||||||
const randomHexColorCode = () => {
|
const randomHexColorCode = () => {
|
||||||
var color = '#';
|
var color = '#';
|
||||||
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"
|
||||||
|
|||||||
Reference in New Issue
Block a user