Test your Axios knowledge with a free interactive quiz — 27 questions with answers and explanations. No signup needed to play.
Question 1/12Score 0
What does `validateStatus` in an Axios config control?
In this round
What does `validateStatus` in an Axios config control?
What does it mean if an Axios error has `error.request` set but `error.response` is undefined?
How do you check that a caught error came from Axios rather than some other exception?
What is Axios?
What does a request interceptor allow you to do?
What does `withCredentials: true` do in an Axios request config?
In a React component that fetches search results on every keystroke, why would you cancel the previous request when a new one starts?
A component calls `api.get("/user")` inside an effect with no `timeout` and no cancellation, and the backend is unusually slow. What is the user-visible consequence?
How do you run two independent Axios requests concurrently and wait for both to finish?
How does Axios handle an object passed to `params` in a GET request config, e.g. `{ params: { page: 2, limit: 20 } }`?
Why is it recommended to create a dedicated Axios instance per backend API instead of calling the default `axios` export everywhere?
What is a common use case for a response interceptor?