I have an input
that I want to track it with each keydown event but at the first time I'm getting empty output and then one of letters repeating itself.
try sssd
for input , first you will get empty output and at last you will get ssss
and I tried on other events too
let theinput = document.getElementById("clrinput");
theinput.addEventListener("keydown", () => {
console.log(theinput.value);
});
<input type="text" id="clrinput">