Create a function that returns the average of an array composed of letters. First, find the number of the letter in the alphabet in order to find the average of the array.
A = 1
B = 2
C = 3
D = 4
E = 5average = total sum of all numbers / number of item in the setReturn the result rounded to two decimal points.
averageIndex(["f", "o", "r", "t", "h", "e", "l", "o", "v", "e", "o", "f", "t", "e", "s", "h"]) âžž 12.44
averageIndex(["m", "y", "t", "e", "s", "h"]) âžž 15.0
averageIndex(["m", "y", "w", "o", "r", "l", "d"]) âžž 15.71
averageIndex(["y", "o", "u", "a", "r", "e", "t", "h", "e", "b", "e", "s", "t"]) âžž 12.62Letters given will always be lowercase.