Which is the correct syntax for creating an XMLHttpRequest Object?

Which is the correct syntax for creating an XMLHttpRequest Object?
Variable = new XMLHttpRequest();
Variable = new XMLHttp();
Variable = XMLHttpRequest(new);

2 Likes

variable= new XMLHttpRequest();

2 Likes

the correct answer is new XMLHttpRequest();

1 Like

Variable = new XMLHttpRequest();

option 1 variable = new XMLHttprequest();

1 Like