Why does a Promise return an object Promise, even if I put `return` explicitly? [duplicate]
问题 This question already has answers here : JS: Promise doesn't return value (2 answers) Closed 1 year ago . I expected a Promise will return a value that I put. But It doesn't return a value but returns Promise { pending } var c = new Promise((resolve, reject)=>{ console.log('here'); return 'return here'; // resolve('resolve here') }); console.log(c); I expected there will be return here instead of Promise { pending } 回答1: Why does a Promise return an object Promise, even if I put return