JS Sleep


### function
```typefunction sleep (delay) {   var start = new Date().getTime();   while (new Date().getTime() < start + delay);}```


> [setTimeout과 custom sleep](https://multifrontgarden.tistory.com/157)






