Hello Fellows
Could anybody tell me why my code doesn’t show anything in the console when trying to use this API
<button id="nextQuote">press</button>
JavaScript code
$(document).ready(function(){
$("#nextQuote").on("click",function getData(quote,author){
$.getJSON("http://api.forismatic.com/api/1.0/?method=getQuote&lang=en&format=jsonp&jsonp=?", function(json) {
quote = json.quoteText;
author = json.quoteAuthor;
console.log(quote);
});
});
});
would appreciate your support
