Tell us what’s happening:
I understand what does this code does, but how do I get it to run from my local machine whilst using Atom. I’m trying to understand the principles behind how to get this to work.
Thanks
return $.ajax({
headers: {
Accept: "application/json"
},
url: 'https://gist.githubusercontent.com/camperbot/5a022b72e96c4c9585c32bf6a75f62d9/raw/e3c6895ce42069f0ee7e991229064f167fe8ccdc/quotes.json',
success: function(jsonQuotes) {
if (typeof jsonQuotes === 'string') {
quotesData = JSON.parse(jsonQuotes);
console.log('quotesData');
console.log(quotesData);
}
}
});
}
Your browser information:
User Agent is: Chrome