Important: For the following exercises, don't simply use a library or Stackoverflow code for this. You can look at other people's code to see how it works, but you must understand the concepts and be able to implement them on your own.
Rectangle with properties
height. It offers an
area method that returns the product of width and height.
average function that takes an arbitrary number of arguments ("rest parameters") and computes their arithmetic mean.
isEqual() method that compares whether two objects of the following types are equal:
Array, recursively compared by their elements. Their contents must have the same order.