Skip to content

Commit d93a1f7

Browse files
committed
Add more details in comments
1 parent b880aea commit d93a1f7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ let total = 0; //set total to 0
55
let diceRolls = []; //set list of dice rolls to empty list
66
rollDiceButton.addEventListener("click", () => {
77
//when roll dice button is clicked
8-
const numDice = parseInt(numberOfDiceInput.value, 10); //get number of dice input value
8+
const numDice = parseInt(numberOfDiceInput.value, 10); //get number of dice input value as integer
99
total = 0; //reset total to 0
1010
diceRolls = []; //reset dice rolls to empty list
1111
for (let i = 0; i < numDice; i++) {

0 commit comments

Comments
 (0)