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.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *