const displayQuote = document.querySelector(".quotes");
fetch(`http://quotes.rest/qod.js?category=inspire`)
.then(function(response) {
return response.json();
})
.then(function(myJson) {
console.log(JSON.stringify(myJson));
});
error message displayed on the console
Uncaught (in promise) SyntaxError: Unexpected token p in JSON at position 0 Promise.then (async) (anonymous) @ quotes.js:8
I am attempting to retrieve the quote and display it.