Review DOM Manipulation by Building a Rock, Paper, Scissors Game - Step 4

Tell us what’s happening:

Hi fam. I have been steering at this code for some time now.. I can’t seems to think what could be the problem.. I need explanation to this.. it’s not working

Your code so far

<!-- file: index.html -->

/* file: script.js */
// User Editable Region

const playerScoreSpanElement = document.getElementById("player-score");
const computerScoreSpanElement = document.getElementById("computer-score");
const roundResultsMsg = document.getElementById("results-msg");

function showResults(userOption) {
  playeScoreSpanElement.innerText = playerScore;
  computerScoreSpanElement.innerText = computerScore;
  roundResultsMsg.innerText = roundResults;

};

showResults("Rock");

// User Editable Region
/* file: styles.css */

Your browser information:

User Agent is: Mozilla/5.0 (Linux; U; Android 12; en-ng; CPH2387 Build/SP1A.210812.016) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.98 Mobile Safari/537.36 PHX/16.8

Challenge Information:

Review DOM Manipulation by Building a Rock, Paper, Scissors Game - Step 4

  • You can use the getRoundResults function to get the result of the round.

You are not using this function to get the result of the round

I don’t understand please elaborate.. I should use the getRoundResult to get the result of the round

yes, you should use getRoundResults to get the results of the round, you should look back at where the function is defined to remind yourself what arguments it needs and what it returns

Ok let me check that.. but it seems I have done something like that but still didn’t run as it should

that’s great, you would need to share the code with that to see what went wrong though

Thanks I already solved it