Is there a way I can do a sleep in JavaScript before it carries out another action?
Example:
var a = 1+3; // Sleep 3 seconds before the next action
This is my model that shows how to "sleep" or "DoEvents" in javascript using a generator function (ES6). Commented code:
Hit me to see if I'm alive