Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Pro Oracle Fusion Applications Installation And Administration

Authors: Tushar Thakker

1st Edition

1484209834, 9781484209837

More Books

Students also viewed these Databases questions

Question

How to reverse a Armstrong number by using double linked list ?

Answered: 1 week ago