Week 6 reading review Flashcards

Review Readings Week 6

1
Q

To prevent blocking, HTTP requests sent to the server need to be

A

asynchronous

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

The method in JavaScript to create an asynchronous request

A

fetch()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Two methods of fetch() to handle success and failure

A

then() catch()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

A ________ is a wrapper for an operation that may be available in the future.

A

promise

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

The three states of a promise

A

pending, fulfilled or rejected

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

JSON method to transform text(string) into an object

A

parse()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

JSON method to transform an object to text(string)

A

stringify()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Method to read content as plain text

A

text()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Method to read content JSON

A

json()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

A well-defined service offer by a software program to others

A

API or Application Programming Interface

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

API accessible through HTTP or HTTPS

A

web API

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Data format usually used in web APIs

A

JSON

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

A common means of authentication in web API

A

access key

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Send HTML form data as key/value pairs you use the

A

FormData object

How well did you know this?
1
Not at all
2
3
4
5
Perfectly