promise settimeout code example Example: promise settimeout await new Promise(resolve => setTimeout(resolve, 1000))