How to trigger an event in input text after I stop typing/writing?
let typingtimer;
let timedelay = 2000
Email.addEventListener('input', ()=>{
clearTimeout(typingtimer)
if (Email.value){
typingtimer = setTimeout(()=>{
//do stuff
}, timedelay);
};
});