Untitled
const delay = (ms) => new Promise((resolve) => setTimeout(resolve, ms)); delay(1000).then(() => { // write function here });
const delay = (ms) => new Promise((resolve) => setTimeout(resolve, ms)); delay(1000).then(() => { // write function here });