```
const navSlide = () => {
    const bar = document.querySelectorAll('.bar');
    const nav = document.querySelectorAll('.nav_links');

    bar.addEventListener('click', () => {
        nav.classList.toggle('nav-active');
    })
}
navSlide();

```