
Promises help manage asynchronous operations. Learn how to use them with `.then()`, `catch()`, and `async/await`.

const fetchData = () => {
return new Promise((resolve) => {
setTimeout(() => resolve(\"Data loaded\"), 1000);
});
};
fetchData().then(console.log);