DeepFrontend
Learning Paths
Practice
System Design & DS
Design Studio
Data Structures Curriculum
Real-World Case Studies
Careers
Job Board
Resume Builder
Blog
Sign in
Search
⌘K
Go Pro
Loading compiler resources...
JavaScript Quiz Practice
Active Recall Drill Session
← Exit Session
Question 1 of 1
medium
JavaScript
How do you cancel an in-flight fetch request?
A
Call .cancel() on the returned promise
B
Pass an AbortController's signal in the fetch options, then call controller.abort()
C
It's not possible to cancel a fetch once started
D
Set a `timeout` option in fetch()
Check Answer