const sleep = s => new Promise(resolve => setTimeout(resolve, 1000 * s))
// 1秒待つ
await sleep(1)
// 5秒待つ
await sleep(5)
// 500ミリ秒待つ
await sleep(.5)
await new Promise(resolve => setTimeout(resolve, 3000)) // 3秒待つ
Go to list of users who liked
const sleep = s => new Promise(resolve => setTimeout(resolve, 1000 * s))
// 1秒待つ
await sleep(1)
// 5秒待つ
await sleep(5)
// 500ミリ秒待つ
await sleep(.5)
await new Promise(resolve => setTimeout(resolve, 3000)) // 3秒待つ
Register as a new user and use Qiita more conveniently
Go to list of users who liked