Promise and Methods
A promise is used to perform asynchronous tasks in JavaScript because JavaScript is a single-threaded programming language. Three possible states in Promise Example of promise Methods of Promise Promise.catch() This method runs once all promises are completed, whether they are resolved or rejected. It is used to handle errors if… Continue Reading Promise and Methods