What is a Promise in JavaScript?
Promise is easier to write and implement than callbacks. A promise is simply an object that represents the completion or failure of a process. It's usually something that takes time. When we use a library like Axios we return a promise and when we request data from api this process may take time and this value may never come back...



