KendallDoesCoding / mogul-christmas

Avoid use of == and != JS-0050
Anti-pattern
Minor
a year agoa year old
Expected '===' and instead saw '=='.
156  let button = document.createElement("button"); 
157  button.innerText = page; 
158 
159  if (current_page == page) button.classList.add("active"); 160 
161  button.addEventListener("click", function () { 
162    current_page = page;