I am encountering an issue where every time I attempt to log data to my console, an error occurs. Could someone kindly point out what may be the problem with the code? My objective is to actually showcase the html content on a webpage. Below is the code snippet:
$(function () {
$.ajax({
url: '//en.wikipedia.org//w/api.php?action=parse&format=json&page=pizza&prop=text§ion=0&contentmodel=wikitext&formatversion=2',
dataType: 'jsonp',
success: function (data) {
console.log(data);
}
});
});