i make code js for icon beager in header so i due to when user click on it show new bakground-color that in it is ul ect
this code js i think my problem is in js
let bgc_menu_header = document.querySelector(".bgc_menu_header")
let menuBtn = document.querySelector(".btn-beager-icon")
let menuBtnicon = document.querySelector(".btn-beager-icon img")
bgc_menu_header.addEventListener("click", function(){
if (menuBtnicon.classList.contains("menu_header")){
bgc_menu_header.style.left = "0";
menuBtnicon.classList="menu_header"
} else{
bgc_menu_header.style.left = "-299px";
menuBtnicon.classList="menu_header"
}
})