Closed alt440 closed 5 years ago
An if condition inside the scoreHandling.js file handles that (in the post section of sendScore.html). We look at the examArrayInit variable, instantiated from examArrayMgmt.js, and this determines if we are going to the examMaxScore file.
Once the user has a mistake in the game, the page directly redirects to the gameOver.ejs file. If he/she has all the right answers, the user goes to examMaxScore.ejs. However, that page does not send the score the user has.