AJAX Flashcards
1
Q
What does AJAX stand for?
A
Asynchronous JavaScript and XML (we often use JSON instead of XML nowadays)
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
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
4
Q
What does fetch() return?
A
Promise
5
Q
What does fetch().then() return?
A
Promise
6
Q
What does fetch().then().then() return?
A
Promise