Skip to content

Commit fca113c

Browse files
committed
Improve comments
1 parent 5eef668 commit fca113c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ rollDiceButton.addEventListener("click", () => {
1212
diceRolls = []; //reset dice rolls to empty list
1313
for (let i = 0; i < numDice; i++) {
1414
//repeat for each dice
15-
const roll = Math.floor(Math.random() * numSides) + 1; //get random dice number
15+
const roll = Math.floor(Math.random() * numSides) + 1; //get random dice number based on number of sides
1616
diceRolls.push(roll); //add roll to list of dice rolls
1717
total += roll; //add rolled dice to total
1818
}

0 commit comments

Comments
 (0)