Answers for "how to delay execution in nodejs"

1

how to delay execution in nodejs

function sayHello() {
  console.log("hello");
}

// calls the sayHello function after 1000 milisecends
setTimeout(sayHello, 1000);
Posted by: Guest on May-20-2021
-1

node scripts delay

"scripts": {  "test:system": "npm-run-all build -p -r serve test",  "build": "webpack",  "serve": "serve -p 8000",  "test": "wait-on http://localhost:8001 && npm run test:codecept",  "test:codecept": "codecept",}
Posted by: Guest on July-21-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language