Wybierz wszystkie elementy z tym samym tagiem

const menu_items = document.querySelectorAll('li');
Meandering Meerkat