fr
fr

Question from the Javascript - Fundamentals test

Waiting for validation

An autocomplete component starts a browser request using:

const controller = new AbortController();
const pending = fetch("/api/search?q=design");

The request is still pending when controller.abort() is called. Which change connects that controller to the request so it can cancel it? Select one answer.

Author: AthosStatus: Waiting for validationQuestion not yet passed
0
Community EvaluationsNo one has reviewed this question yet, be the first!