Vidyalelo
JavaScript · Q150

Document Object Model And Event Handling

Programming · JavaScript · question 150

Q150

Which is the appropriate code to begin a HTTP GET request?

A.
request.open("GET","data");
B.
request.open(GET,"data.csv");
C.
request.open("GET","data.csv");
Answer
D.
request.open("GET");

Answer: Option C

Solution

Answer: Option C
Solution:
The code that begins a HTTP GET request for the contents of the specified URL is
request.open("GET","data.csv");