Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started