Upon clicking a link in the Navbar, I want to change its color (Link A) and have it return to default if I navigate to another link (Link B).
links.forEach( a=>{ //I want all other links to revert back to default color
a.onclick = () => {
a.classList.add("active");
}
})