How to implement conditional logic based on quiz results in JavaScript in anime suggestion app

I’m creating a quiz app that suggests anime series based on a few questions. After the user answers, I need to decide which series to recommend based on their responses. For example, if they like action, show one set of results, and if they prefer romance, show a different set. The app should display anime recommendations accordingly. I’m using JavaScript to process the answers and filter the suggestions, but I’m having trouble implementing the conditional logic properly. How can I make this work efficiently, especially when there are multiple possible outcomes?

I have created a function that checks the answers and uses if/else statements to display the appropriate results. I expected that after the user answers, the app would show the corresponding anime suggestions. However, when I test it, it sometimes displays incorrect results or doesn’t show anything at all. I tried using console.log to debug, but I’m not sure if the conditionals are being triggered properly.