▲ My current favourite trick in Node.js at nagyadam2092.blogspot.com▼1 up and 0 down, posted by nagyadam2092 1758 days ago 2 comments
nagyadam2092 1757 days ago. link 1 point ▲ ▼@tracker1 yes! When debugging I'm usually just too lazy to declare the function, and just copy-paste the snippet :P Cheers!
tracker1 1757 days ago. link 1 point ▲ ▼Alternatively... const delay = ms => new Promise(resolve => setTimeout(resolve, ms)); ... await delay(5000);