Is there a simple way to pause the script in Javascript? I'm looking for the javascript equivalent of time.sleep(1)
in Python. I do NOT want setTimeout(continueExecution, 10)
, or anything with getTime
. Can this be done?
EDIT: It wasn't quite as easy, but I think I can get it done with setTimeout