modify the code in the subfolder text scores to create a web application that add student names and scores into arrays and display the scores. your program must be written in javascript. in addition, you should follow the specific guidelines below.

Respuesta :

Modify the code in the subfolder text_scores to create a web application that adds student names and scores into arrays and displays the scores. Should follow the specific guidelines below.

var names = ["Ben", "Joel", "Judy", "Anne"];

var scores = [88, 98, 77, 88];

var $ = function (id) { return document.getElementById(id); };

window.onload = function () {

$("add").onclick = addScore;

$("display_scores").onclick = displayScores;

};

Program Requirements:  Program must be written in JavaScript. Furthermore, you should follow the specific guidelines below.

The Use a Test Score array application is displayed as follows on the website. It should contain:

  1. Two text boxes for Name and Score;
  2. One button is required for the Array.
  3. One more button is required for Display Scores.
  4. The application checks the two input text fields after the user clicks the Add to Array button (20%).
  5. After the user presses the Add to Array button, the application verifies the two input text boxes (5%).
  6. You must enter a genuine name and a valid score, according to the alert popup that appears if any of the information is wrong (5%).
  7. If the input is accurate, add the name and score to the arrays of names and scores, respectively (10%).
  8. The external JavaScript file test scores already contain these two arrays
  9. js to store the names and scores (see the first two lines of code in the initial test_scores_js).
  10. Clear the two input text boxes.
  • When the user clicks on the Display Scores button, the program displays the names and scores into the table below the two buttons (20%).
  • Others (10%).

Learn about Web

https://brainly.com/question/9060926

#SPJ4

RELAXING NOICE
Relax