Question: CHALLENGE ACTIVITY AGIYE0.9.1: Throwing and catching exceptions Start Add a throw statement to the processNumbers function that throws the message 'An element is not a

CHALLENGE ACTIVITY AGIYE0.9.1: Throwing and catching exceptions Start Add a throw statement to the processNumbers function that throws the message 'An element is not a number." if one of the elements in numberElements is not a number. Hint: The function isNaN() returns true if the parameter is not a number. function processNumbers CnumberElements) t/ Code will be tested with different values of numberELements 2 var result=0; 4 for (var index-0; ndex numberElements.length; index) 6 Your solution goes here/ resultnumberElements [index]1.3index; 10 11 return result; 12 Check Next
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
