function reset(name) {
        if (catalog[name] != undefined) {
            let plant = catalog[name]
            plant.ratings.length = 0
            plant.avgRating = 0
            
            
        } else {
            console.log('error');
        }
    }
// - if the plant exist in the catalog, remove all ratings
if the plant exist in the catalog, remove all ratings
if the plant exist in the catalog remove all ratings
function reset(name) {
        if (catalog[name] != undefined) {
            let plant = catalog[name]
            plant.ratings.length = 0
            plant.avgRating = 0
        } else {
            console.log('error');
        }
    }
function reset ( name ) { if ( catalog [ name ] != undefined ) { let plant = catalog [ name ] plant . ratings . length = 0 plant . avgRating = 0 } else { console . log ( 'error' ) ; } }
if the plant exist in the catalog, remove all ratings
if the plant exist in the catalog remove all ratings