We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 01fcfe1 commit b5b9115Copy full SHA for b5b9115
Rock-Paper-Scissors-Game/app.js
@@ -46,4 +46,11 @@ function getResult() {
46
resultDisplay.innerHTML = `<img src="./public/computer.png" alt="Computer" style="width: 10%;">`;
47
resultDisplay.className = "you-lose";
48
}
49
+ if (result === "You win!") {
50
+ score.wins += 1;
51
+ } else if (result === "You lose!") {
52
+ score.losses += 1;
53
+ } else if (result === "It's a draw") {
54
+ score.ties += 1;
55
+ }
56
0 commit comments