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:
- Two text boxes for Name and Score;
- One button is required for the Array.
- One more button is required for Display Scores.
- The application checks the two input text fields after the user clicks the Add to Array button (20%).
- After the user presses the Add to Array button, the application verifies the two input text boxes (5%).
- 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%).
- If the input is accurate, add the name and score to the arrays of names and scores, respectively (10%).
- The external JavaScript file test scores already contain these two arrays
- js to store the names and scores (see the first two lines of code in the initial test_scores_js).
- 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
