From 088e0f36c26ae2571380e34235504e4219a548c2 Mon Sep 17 00:00:00 2001 From: Saksham Mittal Date: Sat, 2 Apr 2022 21:15:24 +0530 Subject: Fix formatting --- script.js | 5 ----- 1 file changed, 5 deletions(-) (limited to 'script.js') diff --git a/script.js b/script.js index be7a2f6..0213d83 100644 --- a/script.js +++ b/script.js @@ -64,14 +64,11 @@ function validateInput() { function checkAnswer(event) { event.preventDefault(); - if (!exit) { if (validateInput()) { addGuessDisplay(); - tries++; - if (input.value == answer) { win.innerHTML = "You won!"; exit = true; @@ -86,8 +83,6 @@ function checkAnswer(event) { if (tries > 1) { attempt.innerHTML += "s"; } - - } } } -- cgit 1.4.1