Let readers mark The Field Guide as a favourite. The card's note class supplies its base appearance; active adds the green highlight.
The two click listeners are already in script.js. Add your statements inside their callback bodies. The browser runs the appropriate body when its button is activated, as in the programme demo.
After changing the class, use bookCard.classList.contains("active") to choose the status text. An if/else works. The shorter expression condition ? "yes" : "no" also works: it returns the first value when the condition is true, otherwise the second.
Run after each task. Favourite should add the highlight; Remove favourite should clear it. Neither button should remove the base note class. Submit to check the class changes and messages separately.
active to #book-card without removing note.classList.contains to report Favourite: yes in #favourite-status.active while keeping note.classList.contains to report Favourite: no in #favourite-status.