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

Tell us what’s happening:

ok i think we have a problem here. when i tried solving this step of the review dom manipulation, the instruction was to build a message if the player wins it should return a string with the message, if its a draw game it should return a string also and if computer wins it should return a string too. instead of using the if…else statement i just return an empty string in the function and the test passed. is it a glitch or what? i dont know if someone can help clarify that for me

Your code so far

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

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

function getRoundResults(userOption) {
  const computerResult = getRandomComputerResult();
 
}

console.log(getRoundResults("Rock"));
console.log("Player Score: ", playerScore, "Computer Score: ", computerScore);

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

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36

Challenge Information:

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

It shouldn’t do that.

To help make FCC better bugs can be reported as GitHub Issues. Whenever reporting a bug, please check first that there isn’t already an issue for it and provide as much detail as possible.