Skip to content
time.sleep() function in JavaScript?
Profile icon
AdamZow

Like how Python has a time.sleep function to delay code execution, does JavaScript have a similar time function that delays code the same way? Can this be applied to a script page in HTML?

You are viewing a single comment. View All
Profile icon
JakeHu2020

Sorry if this is an terribly, revoltingly, extremely late answer, but check out this link. It will answer your question: https://stackoverflow.com/questions/951021/what-is-the-javascript-version-of-sleep