Sleep in JavaScript

via: https://stackoverflow.com/a/39914235/102401

Example with external function:

Example with sleep inside as one-liner

Also:

- Must be in an async function