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