InterviewSolution
Saved Bookmarks
| 1. |
What is the use of Fetch API? |
|
Answer» Fetch works as an INTERFACE to create the AJAX request in JavaScript. All modern browsers largely use it. Developers leverage the Fetch to call any API that works in TANDEM with AJAX. When an application calls or USES the Fetch, it returns a promise along with a Response object. The promise gets rejected when it encounters a network error. The server will again respond with a status code for the application when the connection comes back. When the DEVELOPER uses the Fetch, the status CODES are usually 200s, 400s, or 500s. |
|