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