diff --git a/script.js b/script.js index 2449cbb..0d581bb 100644 --- a/script.js +++ b/script.js @@ -82,9 +82,8 @@ function rgbColor() { let g = 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(); \ No newline at end of file