logo CodeStepByStep logo

averageOf3

Language/Type: JavaScript parameters return
Author: Melissa Hovik (on 2016/09/25)

Write a function named averageOf3 that accepts three integers as parameters and returns the average of the three integers as a real number. For example, the call of averageOf3(4, 7, 13) should return 8.

Function: Write a JavaScript function as described, not a complete program.

You must log in before you can solve this problem.

Log In

Need help?

Stuck on an exercise? Contact your TA or instructor.

If something seems wrong with our site, please

Is there a problem? Contact us.