function delay(ms) {
  return new Promise((resolve) => {
    setTimeout(resolve, ms)
  })
}
// Returns a promise that resolves in the given number of milliseconds.
Returns a promise that resolves in the given number of milliseconds.
Returns a promise that resolves in the given number of milliseconds .
function delay(ms) {
  return new Promise((resolve) => {
    setTimeout(resolve, ms)
  })
}
function delay ( ms ) { return new Promise ( ( resolve ) => { setTimeout ( resolve , ms ) } ) }
Returns a promise that resolves in the given number of milliseconds.
Returns a promise that resolves in the given number of milliseconds .