From 3945f41ade4b4d1ace345e45ba875f02b5481b6f Mon Sep 17 00:00:00 2001 From: hkv24 <114167394+hkv24@users.noreply.github.com> Date: Thu, 4 May 2023 00:43:15 +0530 Subject: [PATCH] Update index.js --- index.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 577ff51..f14270b 100644 --- a/index.js +++ b/index.js @@ -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 🏁 "; }