promises[callback ]
https://www.youtube.com/watch?v=ap-6PPAuK1Y&t=2090s
inversion of control:
so this code:-----------
const promise=createOrder(cart)
promise is in empty object[asynchronous call]
{data:undefined}[property untill the value is not there]
after some time data will be filled with data...orderdetail
resolve just once immutable
promise is an object representing the eventual completion of asynchronous operation.



Comments
Post a Comment