Programming Concepts — Asynchronous Programming
Asynchronous programming allows a program to handle tasks like network requests without blocking the main thread, improving performance and responsiveness.
setTimeout(() => {
console.log('This runs after 2 seconds');
}, 2000);
console.log('This runs immediately');