Question from the Javascript test

Retrieve a JSON array from a web server using JavaScript.

Hard

My server is set to respond to GET/api/ articles with exactly the following JSON:

[
   { "title" : "Lorem Ipsum", "category" : "News", "author" : "Chuck Norris" },
   { "title" : "Dolor Sit", "category" : "News", "author" : "Bruce Lee" },
   { "title" : "Amet Enebet", "category" : "Sport", "author" : "Ip Man" }
]

Which of the following code(s) will correctly retrieve this JSON array in the finaldata variable from a web browser?

Author: Jean-marie CléryStatus: PublishedQuestion passed 2037 times
Edit
1
Community EvaluationsNo one has reviewed this question yet, be the first!