There are a lot of similar questions but none of them really works when I test them so I don't think Im understanding them well. I modeled the below after this.Is there a way the following to return 3?
const fn = () => {
let promise = new Promise(function(resolve, reject) {
setTimeout(() => resolve(1), 1000);
});
promise.then(function(result) {
return result * 2;
});
return promise
}
fn()