Question: This is javascript programming. I will provide the code from step 2. It will be highlighted in the picture Create a file called index.html and

This is javascript programming. I will provide the code from step 2. It will be highlighted in the picture

This is javascript programming. I will provide the code from step 2.

It will be highlighted in the picture Create a file called index.html

Create a file called index.html and a file called min-max.js. In min-max.js create a class called MinMax. This class should have the following: constructor(numbers) // constructor should store an array of numbers in a member variable called numbers findMinMax)this function returns an array that holds the minimum and maximum values of numbers. (You can use the code from the previous assignment to help with this) o removeMax) this function removes the first instance of the maximum value in numbers and returns the numbers member variable. Example: numbers [3,9,0,1,7,9]. After this function is called numbers = [3,0,1,7,9] In your index.html file link min-max.js. Add javascript that instantiates a MinMax object and call findMinMax() and removeMax() on the object and log the results to the console. Do NOT use the array sort method or any pre-written min and max javascript functions to solve these problems

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!