Content
Boss: Can you make a gray-background button? And please stop doing jokes in your code Me: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 const button document .querySelector("button"); function newColor() var r Math. floor(Math.random () 256); var g – Math. floor (Math. random () 256); var b Math. floor (Math.random () 256); grayBackground(r, g, b); function grayBackground(r, g, b) if (r 128 g 128 b 128) button.style.backgroundColor rgb(r), (g) , b)’; alert("Is gray!"); else newColor (); newColor);