Question: Write a JavaScript program that does the following: Ask user to enter five grades using prompt. Find how many students failed and how many students

 Write a JavaScript program that does the following: Ask user to

Write a JavaScript program that does the following: Ask user to enter five grades using prompt. Find how many students failed and how many students passed the exam. Grade less than 50 is fail. Print each Grade as h2. Print the result of how many students failed or passed as hl Change the color of hl. The result like the following: - gnment:h.html Fle/Users/Administrator/Desktop/first semester_2021/ Gradel is 99 Grade2 is 35 Grade3 is 68 Gradet is 42 Grade5 is 88 number of students [passed]:3 number of students (failed]:2

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!