Update post-data-with-the-javascript-xmlhttprequest-method.md (#39835)

Uses common language to describe API data request. Improves clarity of instruction.
pull/39979/head
James Bush 2020-10-14 18:34:13 -04:00 committed by GitHub
parent 40c16e6f44
commit 5164b09dab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -32,7 +32,7 @@ Finally, the <code>send</code> method sends the request with the <code>body</cod
## Instructions ## Instructions
<section id='instructions'> <section id='instructions'>
Update the code to create and send a "POST" request. Then enter your name in input box and click "Send Message". Your AJAX function will replace "Reply from Server will be here." with the reply of the server. In this case, it is your name appended with " loves cats". Update the code so it makes a "POST" request to the API endpoint. Then type your name in the input field and click "Send Message". Your AJAX function should replace "Reply from Server will be here." with data from the server. Format the response to display your name appended with " loves cats".
</section> </section>
## Tests ## Tests