Tell us what’s happening:
I am stuck on step 10. It says to add an event listener to three buttons and call function show results. I wrote code for all three buttons but its not passing the test. Please help me finding my mistake. Thank you
Your code so far
<!-- file: index.html -->
/* file: styles.css */
/* file: script.js */
// User Editable Region
rockBtn.addEventListener("click", showResults("Rock"));
paperBtn.addEventListener("click", showResults("Paper"));
scissorsBtn.addEventListener("click", showResults("Scissors"));
// User Editable Region
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/137.0.0.0 Safari/537.36
Challenge Information:
Build a Rock, Paper, Scissors Game - Step 10