Answered step by step
Verified Expert Solution
Question
1 Approved Answer
In the code below, you will find 5 errors. Clearly identify each error and how you resolve each error. (1 point per error) 1 var
In the code below, you will find 5 errors. Clearly identify each error and how you resolve each error. (1 point per error) 1 var names ["Ben", "Joel", "Judy" "Anne"]; var scores [88, 98 77, 88); 3 4 F) var $ function (id) { 5 6 7 8 var addScore function () { 9 return document.getElementById (id); // get user entries var name $("name").value; var score parseInt( $("score").value 12 13 14 15 16 17 18 19 // check entries for validity if (name-- '' " Il isNaN(score) II score 100) { alert("You must enter a name and a valid score"); else names [names.length]- name; scores [names.length]score; $ ("name").value" $("score").value"" 21 23 24 25 $ ("scores_display").value""; $ ("name").focus
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started