Published
- 1 min read
nodejs invoke function after delay
The solution for this is noted below
nodejs invoke function after delay
Solution
const sayHello = (name) => {
console.log(`Hello ${name}. Welcome to KindaCode.com`)
}
console.log('Waiting...')
setTimeout(sayHello, 1000, 'John Doe')
Try other methods by searching on the site. That is if this doesn’t work