Skip to content

Commit 331c0d4

Browse files
Update main.js
1 parent 39978b9 commit 331c0d4

File tree

1 file changed

+3
-2
lines changed
  • project-9-dice-roll-simulator

1 file changed

+3
-2
lines changed

project-9-dice-roll-simulator/main.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@ const diceEl = document.getElementById("dice");
66
function rollDice() {
77
const rollResult = Math.floor(Math.random() * 6) + 1;
88
// console.log(rollResult);
9-
const rollFace = getDiceFace(rollResult);
10-
console.log(rollFace);
9+
const diceFace = getDiceFace(rollResult);
10+
// console.log(diceFace);
11+
diceEl.innerHTML = diceFace;
1112
}
1213

1314
function getDiceFace(rollResult){

0 commit comments

Comments
 (0)