You can use setTimeout with a delay for the delayed operation
console.log('First');
setTimeout(() => console.log('Second'), 1000);
The “Second’ will be logged after a delay provided as the above code
You can use setTimeout with a delay for the delayed operation
console.log('First');
setTimeout(() => console.log('Second'), 1000);
The “Second’ will be logged after a delay provided as the above code