JavaScript
147
Вклад в тег
const menu = document.querySelector('.burger-menu');
const menuList = document.querySelector('.menu__list');
const activateMenu = () => (menuList.classList.toggle('active-menu'), menu.classList.toggle('active'));
menu.addEventListener('click', activateMenu, true);