# Promises

new Promise resolve reject async await then()

let p = new Promise( function ( resolve , reject ) {
  ...
	  resolve('success promise completed')
   }
   else{
      reject('ERROR , work could not be completed')
   }
})
Last Updated: 2021/11/23 下午3:55:50