[countriesSelect, citiesSelect].forEach((el)=>{
el.addEventListener('change', () => {
if ( ) //...
else //...
}
})
const paragraph = {
country: document.querySelector('p .country');
city: document.querySelector('p .city');
}
//... changeText заменить на соответствующий
paragraph.country.innerHTML = countriesSelect.value;
paragraph.city.innerHTML = citiesSelect.value;