Week 6 reading review Flashcards
Review Readings Week 6
To prevent blocking, HTTP requests sent to the server need to be
asynchronous
The method in JavaScript to create an asynchronous request
fetch()
Two methods of fetch() to handle success and failure
then() catch()
A ________ is a wrapper for an operation that may be available in the future.
promise
The three states of a promise
pending, fulfilled or rejected
JSON method to transform text(string) into an object
parse()
JSON method to transform an object to text(string)
stringify()
Method to read content as plain text
text()
Method to read content JSON
json()
A well-defined service offer by a software program to others
API or Application Programming Interface
API accessible through HTTP or HTTPS
web API
Data format usually used in web APIs
JSON
A common means of authentication in web API
access key
Send HTML form data as key/value pairs you use the
FormData object