Search Docs
resolve(value)
reject(reason)
throw new Error('error')
let p = new Promise((resolve, reject) => { resolve('success') }) p.then((value) => { console.log('onResolved1', value) }); p.then((value) => { console.log('onResolved2', value) }); // onResolved1 success // onResolved2 success