Java Script "ERROR: Parsing error: The keyword 'const' is reserved" Kann jemand helfen?
bearbeitet von Auge
 Auge
    Also der Fehler wird mir noch in dem Bearbeitungsprogramm angezeigt. Benutze Brackets. 
Browser ist auch auf aktuellstem Stand. 
Also das hier wäre der komplette Code: 
     const navSlide = () => {
    const burger = document.querySelector(".burger");
    const nav = document.querySelector(".nav-links");
    const navLinks = document.querySelectorAll(".nav-links li");
    burger.addEventListener("click", () => {
        //toggle Nav
        nav.classList.toggle("nav-active");
        //Animate Links
        navLinks.forEach((link, index) => {
            if (link.style.animation) {
                link.style.animation = "";
            } else {
                link.style.animation =
                    "navLinkFade 0.5s ease forwards ${index / 7 + 0.5}s";
            }
        });
        //Burger Animation
        burger.classList.toggle("toggle");
    });
};
navSlide();
 nicht angemeldet
 nicht angemeldet