change rgbColor output to string literal
This commit is contained in:
parent
34aa91359b
commit
007cabe984
1 changed files with 1 additions and 2 deletions
|
|
@ -82,9 +82,8 @@ function rgbColor() {
|
||||||
let g = Math.floor(Math.random() * 255);
|
let g = Math.floor(Math.random() * 255);
|
||||||
let b = Math.floor(Math.random() * 255);
|
let b = Math.floor(Math.random() * 255);
|
||||||
|
|
||||||
let rgbCol = "rgb(" + r + "," + g+ "," + b +")";
|
return `rgb(${r},${g},${b})`;
|
||||||
|
|
||||||
return rgbCol;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
createGrid();
|
createGrid();
|
||||||
Loading…
Reference in a new issue