Question
Assignment 2a - Surface Area In this assignment we will write a JavaScript program to calculate the average of a set of quiz marks. Instructions
Assignment 2a - Surface Area In this assignment we will write a JavaScript program to calculate the average of a set of quiz marks. Instructions 1. Create variable containing an array that will contain five or more numbers that represent the marks on quizzes. It is assumed that all quizzes will be out of 10 so the numbers must be values between 0-10. 2. Create a function that will take the array as an argument and return the average of the quizzes. 3. Output a text message with the values of the quizzes (without the brackets) and the final average. Use template literals when constructing output strings (AKA back-ticks, template literals are explained in the section on Strings in Chapter 1)
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