Agregar a la lista

Necesito que alguien me ayude en el ejercicio " Agregar a la lista " por favor

import{getData, pharmacy} from ‘pharmacy.review’;

function printPharmacy(pharmacy) {

console.log('___PHARMACY_INFO___');

console.log('type' + pharmacy.type);

console.log('city' + pharmacy.city);

console.log('price' + pharmacy.price);

console.log('rating' + pharmacy.rating);

};

let pharmacy = getData(‘Hopalot’, findPharmacy);

let pharmacy = getData(‘Grassland’, findPharmacy);

function getRatings(pharmacyList) {

let ratings = [];

return ratings;

};

let grasslandPharmacy = getData(‘Grassland’, findPharmacy);

console.log(‘Ratings Array:’);

console.log(getRatings(grasslandPharmacy));

function average(array) {

for (let element in array) {}

return total(array);

};

let grasslandPharmacy = getRatings(getData(‘Grassland’, findPharmacy));

console.log(‘Average Grassland pharmacy rating:’);

console.log(averageRatings(getData(‘Grassland’, findPharmacy)));

let hoptropolisPharmacy = getData(‘Hoptropolis’, findPharmacy);

console.log(‘Average Hoptropolis pharmacy rating:’);

let grasslandHotels = getData(‘Grassland’, findHotels);

function underAHundred(pharmacy) {}

let affordablePhamacy = grasslandPharmacy;

console.log(‘Average Rating in Grassland under $100:’);

console.log(averageRating(affordablePhamacy));

está aquí señor, se duplica pero puede usar