function avg(arr){ let additions = 0; for(let index=0; index<arr.length; index++){ additions += arr[index]; } return (additions/arr.length); }