fetch
- fetch lets you make requests to a server
- Lets you specify URL, method, request body, headers, etc.
- Gives back the response in terms of a "Promise"
- It is a low-level function so you have to manually parse the request
fetch("https://meowfacts.herokuapp.com/")
.then(function(response) { return response.json() })
.then(function(response) { console.log(response) })
3 / 25