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

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!