What will be the output of the following code?
const promise = Promise.resolve(42);
promise.then((result) => {
console.log(result);
});
What will be the output of the following code?
const promise = Promise.resolve(42);
promise.then((result) => {
console.log(result);
});