let request = new XMLHttpRequest();
request.open('GET', 'https://learnwebcode.github.io/json-example/animals-1.json');
request.onload = function()
{
console.log(request.responseText);
};
request.send();
I am continuously seeing this error in my console.
Error: Uncaught SyntaxError: missing ) after argument list
.
Question: What could be causing this issue?