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 bafa357 commit 5305c64Copy full SHA for 5305c64
main.js
@@ -8,7 +8,7 @@ let numberOfRatings = 0;
8
submitButton.addEventListener("click", () => {
9
totalRating += selectedRating;
10
numberOfRatings++;
11
- ratingOutputText.textContent = `Selected rating: ${selectedRating}\nAverage rating: ${(totalRating / numberOfRatings).toFixed(2)}\nTotal ratings: ${numberOfRatings}`;
+ ratingOutputText.textContent = `Selected rating: ${selectedRating}/5\nAverage rating: ${(totalRating / numberOfRatings).toFixed(2)}\nTotal ratings: ${numberOfRatings}`;
12
});
13
14
function changeRating(rating) {
0 commit comments