async sleep does it 3 times nodejs code example Example: async sleep javascript await new Promise(r => setTimeout(r, 2000));