question archive I create in Java Script a function that accepts an array as argument
Subject:Computer SciencePrice: Bought3
I create in Java Script a function that accepts an array as argument. The function should loop through the array elementsand accumulate the sum of ASCIIvalue of each character in element and return the total.For example:function(['A', 'bc', 12]); // returns 361 which is the sum of 65 + 98 + 99 + 49 + 50