00:01
So let's write a javascript program that accepts five subject marks, calculates the average, and assigns a grade based given on the table.
00:07
So let's answer this question.
00:11
Html, and then we're going to have the html, and then head, and then the title is going to be student grade calculator.
00:25
So now that we enter the title, let's enter the functions.
00:29
So we're going to have function calculator grade.
00:31
We're going to have m1, m2, m3, m4, and m5.
00:39
And after defining m1 through m5, we're going to have an alert and please enter all marks.
00:45
If, i .s.
00:48
And m1 through m5.
00:52
Under this, we put the alert and please enter all marks, and then we have to return.
01:02
Now, to calculate the average, we're going to have two backspaces and the average, and then we're going to let the average equal.
01:10
M1 plus m2 plus m3 plus m5 divided by 5.
01:14
And then we're going to let the grade equal this.
01:20
And in quotation marks, and then we're going to put the semicolon.
01:23
And then now we need to add the grade logic, where it's simple grading, where if the average is greater than 90, it's going to be an a...