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 is the purpose of `transformResponse`?
In this round
What is the purpose of `transformResponse`?
How do you run two independent Axios requests concurrently and wait for both to finish?
What does `axios.create({ baseURL: "https://api.example.com" })` return?
A response interceptor retries the original request on every 401 without any guard condition. What bug does this risk?
On a rejected request in a response interceptor, what does `error.response` contain when the server responded with a 404?
How does Axios handle an object passed to `params` in a GET request config, e.g. `{ params: { page: 2, limit: 20 } }`?
How do you check that a caught error came from Axios rather than some other exception?
What is the modern, recommended way to cancel an in-flight Axios request?
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?
What does a request interceptor allow you to do?
What is Axios?
Compared to the native `fetch` API, what does Axios do automatically on a non-2xx response?