Sood RuchikaforRuchikaSoodruchikasood.hashnode.net·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·65 readsSetTimeoutAdd a thoughtful commentNo comments yetBe the first to start the conversation.