Help with Rock Paper Scissors Project

Hi thanks for pointing out the bracket before… Now the lower if statement is throwing up undefined… for paper scissors, but the other outcomes work fine… can you help?

const determineWinner = (userChoice,computerChoice) => {// + 1.1 Outer
if(userChoice === computerChoice) { // Inner to Outer
return “the Game was a tie!”
}; //

if (userChoice === “rock”) { // +2.1
if (computerChoice === “paper”) {// Inner to Outer
return “the Computer Won!”;
} else { // + 2.4
return “You Won!!!”;
};// +2.4

if(userChoice === “paper”) { //3.1 Outer
if(computerChoice === “scissors”){
return “the Computer Won!”
} else {
return “You Won!!!”
}

}; // 3.1 Outer
};// +2.1 Outer
};// +1.1 Outer

console.log(determineWinner(paper,scissors));

A post was merged into an existing topic: Help with Rock Paper Scissors Project