Web APIs and Fetch

Check your ability to use Fetch,Axios,and RESTful APIs with JavaScript.

1. What is the default HTTP method used by the Fetch API when no method is specified?
2. Which of the following are considered standard Web APIs available in modern browsers?
3. The Fetch API returns a Promise that resolves only if the HTTP request is successful (e.g., 200 status).
4. What does CORS stand for? (spelled out)
5. Which method is used to parse a JSON response body in the Fetch API?
6. Which options are commonly included in a Fetch request configuration object for a POST request?
7. The Fetch API can only make requests to the same origin as the current page.
8. What is the purpose of the `mode` option in the Fetch API configuration?
9. Name the browser API that allows accessing the user's geographical location (abbrev.).
10. Which of the following are valid response methods in the Fetch API for handling different data types?
11. When using `async/await` with Fetch, you must wrap the `fetch()` call in a `try/catch` block to handle errors.
12. What does the `response.ok` property return?
13. What is the term for the practice of making multiple independent Fetch requests and waiting for all of them to complete before proceeding?
14. Which headers are commonly set when sending JSON data in a POST request with Fetch?
15. The Fetch API is a replacement for XMLHttpRequest (XHR).
16. What is the default `credentials` option for a Fetch request?
17. What is the abbreviation for the API that allows storing key-value pairs in the browser with no expiration time?
18. Which of the following are valid ways to handle a Fetch response using promises?
19. CORS errors occur only when making requests from a browser to a different origin; they do not occur in server-side code.
20. Which Web API is used to interact with the browser's URL bar and navigation history?
Answered 0 of 0 — 0 correct