showing results for - "javascript delay some seconds"
London
02 Jan 2021
1let ms = 50; // This is the amount of ms you want your code to wait!
2let start = new Date().getTime();
3let end = start;
4while(end < start + ms) {
5  end = new Date().getTime();
6}