How to Create a Sleep function in JavaScript

How to Create a Sleep function in JavaScript