Wait for a specified amount of time.
Usage:
waitTime(1000).then((time) => { console.log('waitTime:', time);}); Copy
waitTime(1000).then((time) => { console.log('waitTime:', time);});
Output:
waitTime: 1000 Copy
waitTime: 1000
The amount of time to wait, in milliseconds.
A Promise that resolves after the specified time has elapsed.
Wait for a specified amount of time.
Usage:
Output: