Question: Js 04-get-avg.is [i] getAverage Write a function 'getAverage' using fat arrow syntax that takes in an arb number of arguments, adds them up and returns
Js 04-get-avg.is [i] getAverage Write a function 'getAverage' using fat arrow syntax that takes in an arb number of arguments, adds them up and returns a string containing the average amount with a dollar sign in front. Hint: Lok up toFixed () on MDN. Examples: getAverage (30,70);1/1$50.001 getAverage (1.12,2.23,3.34,4.45); /1$2.79 ! getAverage (4.99,9.99,19.99);11 ' $11.66 const getAverage =(array){ b. try \{ module. exports = getAverage; 2 rateh f ROBLEMS OUTPUT DEBUG CONSOLE TERMINAL aiting for the debugger to disconnect... nthonys-MacBook-Air:Anthony-Lopez-for-sprint-92-version-c-unit-test-problems anthony east-frequent-letter. js-spec. js lebugger attached. leastFrequentLetter() should return the least frequent letter in a word string should return any of the least frequent letters in the case of a tie 2 passing (41ms) Waiting for the debugger to disconnect... anthonys-MacBook-Air:Anthony-Lopez-for-sprint-02-version-c-unit-test-problems anthonyle Ln 17, Col 1 Spaces: 2 UTF-8 LF
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
