Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
221 B
4
Indexable
Never
console.log("Start");

const promise = new Promise((resolve,reject)=>{
    resolve("promise")
})

console.log("2")

promise.then(res => {
    console.log(res)
})

setTimeout(() => {
console.log("3")
})

console.log("end")