Skip to content
Advertisement

HTML/Javascript Grade Average Calculation

I am currently writing a program in HTML/JavaScript and have been fighting it for several days with hours of research and studying without resolution. My program/site has a table that asks the user to enter their grades for 4 different categories. Then upon clicking the button to calculate the average it is supposed to take those 4 values, and then average them with the correct weighting, and then display the output in a new page division. I am not able to get the output to display and I can’t figure out why.

I apologize if this is dead simple and has been answered before.

JavaScript
JavaScript

Advertisement

Answer

I updated your code to work. The issue being you never displayed the total, you just displayed

‘Your final Grade Is: ‘

JavaScript
User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement