Ajax-loader-large-white
How to use APIs with JavaScript
The Four Verbs

The number of HTTP methods you'll use is quite small—there are just four HTTP "verbs" you'll need to know! They are:

  1. GET: retrieves information from the specified source (you just saw this one!)
  2. POST: sends new information to the specified source.
  3. PUT: updates existing information of the specified source.
  4. DELETE: removes existing information from the specified source.

So when we sent our GET request to codecademy.com, we retrieved information. When you add to or update your blog, you're sending POST or PUT requests; when you delete a tweet, there goes a DELETE request.

Instructions

Make sense? Good! (We'll quiz you in a bit.) Click Save & Submit Code when you feel you've got a good handle on these HTTP methods.

script.js