Promise Methods
Promise Promise represents the completion or failure of an asynchronous task and returns its value. A promise has three states:- - pending: while the promise is running - fulfilled: when the promise is resolved and returns a value ...
May 12, 20222 min read1.3K