Skip to content

Commit

Permalink
✨ Added number formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
kieranperk authored Dec 22, 2023
1 parent 9def4d6 commit 32b6447
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions script.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ function upgradeButtonClick() {
} else if (scrollsPerScrollLevel >= upgrades.length) {
alert("You've already hit the max level of upgrades!")
} else {
alert(`You need ${upgrades[scrollsPerScrollLevel]} scrolls to upgrade. Keep scrolling to earn more!`);
alert(`You need ${upgrades[scrollsPerScrollLevel].toLocaleString()} scrolls to upgrade. Keep scrolling to earn more!`);
}
}

Expand Down Expand Up @@ -99,7 +99,7 @@ function upgradeAutoscroller() {
} else if (autoScrollerLevel >= autoScrollerUpgrades.length) {
alert("You've already hit the max level of upgrades!")
} else {
alert(`You need ${autoScrollerUpgrades[autoScrollerLevel]} scrolls to upgrade the autoscroller. Keep scrolling to earn more!`);
alert(`You need ${autoScrollerUpgrades[autoScrollerLevel].toLocaleString()} scrolls to upgrade the autoscroller. Keep scrolling to earn more!`);
}
}

Expand Down

0 comments on commit 32b6447

Please sign in to comment.