function interval() { setInterval(() => console.log('..'), 1000); } interval(); setTimeout(() => { interval(); }, 2000);