It's Correct!

Good Job!

Time's Up

Correct Answer:
typeof

Game Paused

00:00

Guess It!

1 questions to solve.
Instructions
  1. Your job in this game is to complete missing blanks by selecting from a given set of characters.
  2. Each character can be removed by simply clicking on it. To clear off the whole word just press the Clear All button.
  3. The game is based on a timer; each question has a given amount of time to solve it - make sure you solve it before the time run's up!
Initialises the AJAX request; by setting its request method, destination URL, and whether it should be sent asynchronously.
var xhr = new XMLHttpRequest();
xhr.("GET", "foods.xml", true);
// more code follows
Makes the request synchronous in nature.
var xhr = new XMLHttpRequest();
xhr.open("GET", "foods.xml", );
// more code follows
An event that serves to handle network-level errors of the request.
var xhr = new XMLHttpRequest();
xhr. = function() {
    console.error("An error occured!");
}
// more code follows
Holds the response's status code as a numeric value.
var xhr = new XMLHttpRequest();
xhr.open("GET", "foods.html", true);

xhr.onreadystatechange = function() {
    if (this.readyState === 4) {
        console.log(this.);
    }
}
Holds the response's status message, as a string value.
var xhr = new XMLHttpRequest();
xhr.open("GET", "foods.html", true);

xhr.onreadystatechange = function() {
    if (this.readyState === 4) {
        console.log(this.); // "OK"
    }
}