Answers for "adding timeout in javascript"

3

javascript settimeout

window.setTimeout(()=>{
  console.log('1 second passed!');
}, 1000);
Posted by: Guest on June-01-2020
4

javascript setinterval

setInterval(function() {
  //Your code
}, 1000); //Every 1000ms = 1sec
Posted by: Guest on May-22-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language