Answered step by step
Verified Expert Solution
Link Copied!

Question

00
1 Approved Answer

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

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions