Skip to content

Commit 5305c64

Browse files
committed
Add max rating text
1 parent bafa357 commit 5305c64

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ let numberOfRatings = 0;
88
submitButton.addEventListener("click", () => {
99
totalRating += selectedRating;
1010
numberOfRatings++;
11-
ratingOutputText.textContent = `Selected rating: ${selectedRating}\nAverage rating: ${(totalRating / numberOfRatings).toFixed(2)}\nTotal ratings: ${numberOfRatings}`;
11+
ratingOutputText.textContent = `Selected rating: ${selectedRating}/5\nAverage rating: ${(totalRating / numberOfRatings).toFixed(2)}\nTotal ratings: ${numberOfRatings}`;
1212
});
1313

1414
function changeRating(rating) {

0 commit comments

Comments
 (0)