Question: Write a function getAverage using fat arrow syntax that takes in an arbitrary number of argunents, adds them up and returns string containing the average

Write a function "getAverage" using fat arrow syntax that takes in an arbitrary number of argunents, adds them up and returns string containing the average anount with a dollar sign in front. Hint: Look up "tofixed()' on MDN. Exanplest getAverage(30, 70) i 11 1\$50,00' getAverage(1.12, 2.23, 3.34, 4.45) 11 is2.79' getAverage(4.99, 9.99,19.99):(1 is1. 66
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
