Tell us what’s happening:
Can’t understand what is possibly going wrong. I have followed the instructions and written this code:
function showResults(userOption, roundResultsMsg) {
roundResultsMsg.innerText = getRoundResults(userOption);
playerScoreSpanElement.innerText = playerScore;
computerScoreSpanElement.innerText = computerScore;
}
showResults(“Rock”);
Your code so far
<!-- file: index.html -->
/* file: script.js */
// User Editable Region
function showResults(userOption, roundResultsMsg) {
roundResultsMsg.innerText = getRoundResults(userOption);
playerScoreSpanElement.innerText = playerScore;
computerScoreSpanElement.innerText = computerScore;
}
showResults("Rock");
// User Editable Region
/* file: styles.css */
Your browser information:
User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36
Challenge Information:
Review DOM Manipulation by Building a Rock, Paper, Scissors Game - Step 4