Answers for "javascript how to hold time in a variable"

4

delay in javascript

setTimeout(function() {
 //your code here
}, 1000);
Posted by: Guest on November-03-2020
5

how to wait in javascript

function sleep(ms) {
  return new Promise(resolve => setTimeout(resolve, ms));
}
Posted by: Guest on September-29-2020

Code answers related to "javascript how to hold time in a variable"

Code answers related to "Javascript"

Browse Popular Code Answers by Language