AJAX (Asynchronous JavaScript and XML) is a technique used in web development to create dynamic and interactive web applications. It allows data to be exchanged with a server without refreshing the entire page. AJAX is commonly used for operations like fetching data, submitting forms, or updating parts of a web page in real-time. Understanding AJAX is essential for developers, as many interview questions focus on its concepts, methods, and usage in JavaScript.
1.) What does AJAX stand for?
2.) Which method in JavaScript is used to create an AJAX request?
3.) The XMLHttpRequest() object is traditionally used to send and receive AJAX requests.
4.) What is the default HTTP method used by AJAX?
5.) How do you check the status of an AJAX request?
6.) What is the purpose of the readyState property in XMLHttpRequest?
7.) Which readyState value indicates that the request is complete?
8.) What is the purpose of the onreadystatechange event?
9.) Which method sends the AJAX request?
10.) Which response type is used to receive data as JSON?