Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

230
Views
How to set a specific delay in JavaScript, like time.sleep() in python

In a function, normally you would use setTimeout() to delay a function. However, it will be kind of annoying when you need to use setTimeout() a number of times. For example:

function annoying(){
  setTimeout(function(){
    //code
    setTimeout(function(){
      //code
      setTimeout(function(){
        //code
      }, 3000)
    }, 3000)
  }, 3000)
}

So is there a simple function to delay it, like time.sleep in python?

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!