about summary refs log tree commit diff
diff options
context:
space:
mode:
authorSaksham Mittal <gotlouemail@gmail.com>2022-04-03 12:47:25 +0530
committerSaksham Mittal <gotlouemail@gmail.com>2022-04-03 12:47:25 +0530
commit54348b4a6372ca3d95f618f08dba3e5e5497f3be (patch)
tree54bf5831daf80d9ada4f999ca4716c9508d3dccf
parentf430471922966e1f8a9ab142dd4fc02e00474dd6 (diff)
downloadpurple-54348b4a6372ca3d95f618f08dba3e5e5497f3be.tar.gz
Add indicator for word length
-rw-r--r--script.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/script.js b/script.js
index 33da383..3b8b8b8 100644
--- a/script.js
+++ b/script.js
@@ -11,6 +11,7 @@ let exit = false;
 let tries = 0;
 
 input.setAttribute("maxlength", len);
+hint.innerHTML = "Word is of length: " + len + "</br>";
 
 function letterinstr(c) {