in this assignment we will write a JavaScript program to calculate the average of a set of quiz marks.Instructions1. Create variable containing an array that will contain five or more numbers that represent themarks on quizzes. It is assumed that all quizzes will be out of 10 so the numbers must be valuesbetween 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 finalaverage. Use template literals when constructing output strings (AKA back-ticks, template literalsare explained in the section on Strings in Chapter 1)