getImage
resizeImage
applyFilter
рдПрдХ рд╡рд╛рджрд╛ (рд╡рд╛рджрд╛) рдПрдХ рдореВрд▓реНрдп рд╣реИ рдЬреЛ рднрд╡рд┐рд╖реНрдп рдореЗрдВ рдкреВрд░рд╛ рдпрд╛ рдЕрд╕реНрд╡реАрдХрд╛рд░ рдХрд┐рдпрд╛ рдЬрд╛рддрд╛ рд╣реИред
Promise
[[PromiseStatus]]
[[PromiseValue]]
pending
undefined
PromiseStatus
fulfilled
resolved
rejected
() => {}
resolve
res
reject
rej
.then()
.catch()
.finally()
.then
.catch
Promise.resolve
Promise.reject
Start!
console.log('Start!')
End!
setTimeout
then()
catch()
finally()
Task1
Task2
Task3
Task4
then
queueMicrotask
Task5
Task6
setImmediate
console.log
() => console.log('In timeout')
Promise.resolve()
console.log()
Promise!
'In timeout!'
async
await
new Promise(() => {})
Before function!
myFunc()
'In function!'
one
One!