File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 1- const ratingSystem = document . getElementById ( ' rating-system' ) ;
2- const submitButton = document . getElementById ( ' submit-button' ) ;
3- const ratingOutputText = document . getElementById ( ' rating-output-text' ) ;
1+ const ratingSystem = document . getElementById ( " rating-system" ) ;
2+ const submitButton = document . getElementById ( " submit-button" ) ;
3+ const ratingOutputText = document . getElementById ( " rating-output-text" ) ;
44let selectedRating = 0 ;
55let totalRating = 0 ;
66let numberOfRatings = 0 ;
77
8- submitButton . addEventListener ( ' click' , ( ) => {
8+ submitButton . addEventListener ( " click" , ( ) => {
99 totalRating += selectedRating ;
1010 numberOfRatings ++ ;
1111} ) ;
1212
1313function changeRating ( rating ) {
1414 selectedRating = rating ;
15- }
15+ }
You can’t perform that action at this time.
0 commit comments