Skip to content

Commit

Permalink
Update index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
contributerMe authored Dec 7, 2023
1 parent 8984d17 commit 392c812
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ refreshButton.addEventListener("click",function(){
}, 1000);
})

if(randomNumber1>randomNumber1){
if(randomNumber1>randomNumber2){
document.querySelector("h1").innerHTML = "Player 1 wins 🚩";
}else if(randomNumber2 > randomNumber1){
document.querySelector("h1").innerHTML = "🚩 Won by player 2";
Expand Down

0 comments on commit 392c812

Please sign in to comment.