Now that you’ve made an
async GET request, let’s start getting familiar with the
async POST request.
As we’ve seen before, a POST request requires more information. Take a look at the diagram to the right.
We still have the same structure of using
catch as the
async GET request we just learned about. But, in the
fetch() call, we now have to include an additional argument that contains more information like
method property value is set to
'POST' to specify the type of request we are making. Then we have to include a
body property with the value of
Move on to the next exercise when you’re ready!