AJAX Flashcards

1
Q

What does AJAX stand for?

A

Asynchronous JavaScript and XML (we often use JSON instead of XML nowadays)

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

What is the primary purpose of AJAX?

A

It allows JavaScript to make HTTP requests and use the results without redirecting the browser

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

What are the disadvantages of using AJAX?

A
  • Need to manage history, back button, bookmarks in JS
  • security (browsers heavily restrict AJAX to prevent abuse)
  • uses more HTTP requests, CPU, and RAM
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What does fetch() return?

A

Promise

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

What does fetch().then() return?

A

Promise

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

What does fetch().then().then() return?

A

Promise

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