We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 297a4cb commit d56b393Copy full SHA for d56b393
8-trifecta/42-mood-ring/script.js
@@ -3,7 +3,7 @@
3
4
const stone = document.getElementById('stone');
5
6
-const randomNumber = Math.floor(Math.random(9) * 10) + 1;
+const randomNumber = Math.floor(Math.random() * 10) + 1;
7
8
if (randomNumber == 1) {
9
stone.style.backgroundColor = "red";
@@ -23,4 +23,4 @@ if (randomNumber == 1) {
23
stone.style.backgroundColor = "purple";
24
} else {
25
stone.style.backgroundColor = "black";
26
-}
+}
0 commit comments