Merge branch 'master' of github.com:Chalarangelo/30-seconds-of-code

This commit is contained in:
Oscar Shrimpton
2018-01-30 20:23:04 +00:00
10 changed files with 20 additions and 19 deletions

View File

@ -6,7 +6,7 @@ Use `Math.random` to generate a random 24-bit(6x4bits) hexadecimal number. Use b
```js
const randomHexColorCode = () => {
let n = (((Math.random() * 0xfffff)) * 1000000).toString(16);
let n = (Math.random() * 0xfffff * 1000000).toString(16);
return '#' + n.slice(0, 6);
};
```