about summary refs log tree commit diff
path: root/script.js
diff options
context:
space:
mode:
authorSaksham Mittal <gotlouemail@gmail.com>2022-04-02 21:15:24 +0530
committerSaksham Mittal <gotlouemail@gmail.com>2022-04-02 21:15:24 +0530
commit088e0f36c26ae2571380e34235504e4219a548c2 (patch)
tree4ffbecfd853bd80b7d704e421a896b6b463c8501 /script.js
parentef2f28db550ece88361573cd8835458e7bb49f88 (diff)
downloadpurple-088e0f36c26ae2571380e34235504e4219a548c2.tar.gz
Fix formatting
Diffstat (limited to 'script.js')
-rw-r--r--script.js5
1 files changed, 0 insertions, 5 deletions
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";
 			}
-
-			
 		}
 	}
 }