Froquiz
Home
Quizzes
Job Tracker
Senior Challenge
Get Certified
Blog
🇬🇧
en
Sign In
Start Quiz
🇬🇧
en
Sign In
Start Quiz
Loading...
Quiz Topics
1
2
3
4
5
6
7
8
9
10
01
/ 10
How to use the Fetch API to make a POST request during REST API integration?
Auto Skip
Report Issue
A.
fetch('https://api.example.com/submit', { method: 'POST', body: JSON.stringify({ key: 'value' }), headers: { 'Content-Type': 'application/json' } })
B.
fetch('https://api.example.com/submit', { method: 'POST' }).then(response => response.json())
C.
fetch('https://api.example.com/submit', { method: 'POST', body: { key: 'value' } })
D.
fetch('https://api.example.com/submit', { method: 'GET' })
Previous
Next