Tell us what’s happening:
What is wrong with this? Am I adding the wrong class, or iterating over the elements wrong, or something else?
Your code so far
<!-- file: index.html -->
/* file: styles.css */
/* file: index.ts */
// User Editable Region
const hideElements = (...elements: HTMLElement[]) =>{
elements.forEach((element) => {
element.classList.add("hidden");
})
}
// User Editable Region
Your browser information:
User Agent is: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/149.0.0.0 Safari/537.36
Challenge Information:
Build a Fortune Telling App - Step 7