Fetch API is a modern JavaScript method used to send and receive data from the server.
It is the newer and cleaner alternative to XMLHttpRequest.
Most modern websites and applications use Fetch API for AJAX communication.
Fetch works based on promises.
A promise represents a value that will be available in the future.
The response returned by fetch must be converted before using it.
Common formats are text and JSON.
After conversion, the actual data can be accessed and used inside the next then block.
Fetch runs asynchronously, so the page does not reload or freeze.
Users can continue interacting with the application.
Fetch API provides cleaner syntax and better readability compared to older AJAX methods.
After completing this lesson, you will understand what Fetch API is and why it is used in modern web development.