console.log("Finally 1")) .then(result => console.log(result)) .finally(() => console.log("Finally 2"))"> console.log("Finally 1")) .then(result => console.log(result)) .finally(() => console.log("Finally 2"))"> console.log("Finally 1")) .then(result => console.log(result)) .finally(() => console.log("Finally 2"))">
new Promise((resolve, reject) => {
    setTimeout(() => resolve("value"), 1000);
})
    .finally(() => console.log("Finally 1"))
    .then(result => console.log(result))
    .finally(() => console.log("Finally 2"))