.menu {
display: none;
}
.menu.active {
dispay: block
}
const navigation = document.querySelector('.main-navigation')
const handleNavigationClick = e => {
if (!e.target.classList.contains('scrollToLink') {
return
}
*Удалить класс showen с менюхи*
}
navigation.addEventListener('click', handleNavigationClick)