We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 39978b9 commit 331c0d4Copy full SHA for 331c0d4
project-9-dice-roll-simulator/main.js
@@ -6,8 +6,9 @@ const diceEl = document.getElementById("dice");
6
function rollDice() {
7
const rollResult = Math.floor(Math.random() * 6) + 1;
8
// console.log(rollResult);
9
- const rollFace = getDiceFace(rollResult);
10
- console.log(rollFace);
+ const diceFace = getDiceFace(rollResult);
+ // console.log(diceFace);
11
+ diceEl.innerHTML = diceFace;
12
}
13
14
function getDiceFace(rollResult){
0 commit comments