To make a POST request using Fetch in JavaScript, you need to provide a configuration object with a property called ________.
- body
- endpoint
- headers
- method
To make a POST request using Fetch in JavaScript, you need to provide a configuration object with a property called 'method'. The 'method' property should be set to 'POST' to indicate that you want to perform a POST request. Other properties like 'headers', 'body', and 'endpoint' are also important for the request but 'method' specifically specifies the HTTP method used.
Loading...
Related Quiz
- What is the difference between super() and super(props) in React using ES6 classes?
- Which of the following is NOT true regarding error boundaries?
- In the context of animating route transitions, what role does the location prop play?
- In the context of React Router, what is the difference between exact and strict when defining a Route?
- The Context API provides a way to pass data through the component tree without having to pass props down manually at every level using the ________ and ________ mechanism.