Array.prototype.outputMaxPrice = function outputMaxPrice (array) {
const item1 = Math.max.apply( Math, array );
const item2 = Math.min.apply( Math, array );
return item1 - item2;
}
const array = new Array;
array.outputMaxPrice ([1, 3, 33, 44]) // 43