Skip to content

Commit

Permalink
Update index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
hkv24 authored May 3, 2023
1 parent 853a2c6 commit 3945f41
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,11 @@ else if(b===6) {


if(a>b) {
document.querySelector("h1").innerHTML = "Player 1 🏁 Wins ";
document.querySelector("h1").innerHTML = "🏁 Player 1 Wins ";
}
else if(a===b) {
document.querySelector("h1").innerHTML = "Draw! ";
}
else {
document.querySelector("h1").innerHTML = "Player 2 Wins 🏁 ";
document.querySelector("h1").innerHTML = "Player 2 wins 🏁 ";
}

0 comments on commit 3945f41

Please sign in to comment.