Sood Ruchikaruchikasood.hashnode.dev·Sep 3, 2022Print numbers with setTimeout &setInterval...Given a range, if you want to print numbers in that range at an interval of every 1 second using setTimeout &setInterval then check below code const printNumbers = (from = 1, to) => { //using setTimeout for (let i = from; i <= to; i++) { ...9 likes·93 readsSetTimeout