let time = 60 const intervalId = setInterval(()=>{ time -- if(time <=0 ){ clearInterval(intervalId) } })