Question: 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
Get step-by-step solutions from verified subject matter experts
