Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

how to delay execution in nodejs

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

// calls the sayHello function after 1000 milisecends
setTimeout(sayHello, 1000);
 
PREVIOUS NEXT
Tagged: #delay #execution #nodejs
ADD COMMENT
Topic
Name
8+1 =