So I have just started the Wikipedia API challenge and I just don’t understand why my code is not logging my API back to me in the console. I have done it this way in the previous two challenges, but for some reason it will just not log this one. If someone could look at my code/code pen and let me know that would be great
var api = “https://en.wikipedia.org/w/api.php?action=query&format=json&prop=revisions&titles=Post%20Malone&rvprop=content”;
$(document).ready(function() {
getWiki();
function getWiki() {
$.ajax({
url: api,
success: function (result) {
console.log(api);
}
});
}
});