Hi guys. I have a question concerning a test pen i've been meddling with: 1st : Why is my second console.log() executed before my first ? 2nd : Why does my 'quotes' variable lose its value outside of $.getJSON ? http://codepen.io/UnlimiWorks/pen/WrWrLj?editors=0010 I'm really confused about this, i'll be grateful for any help i can get
Finally fixed it up a bit. At least that one chunk of code. Couldn't have done it without you thanks again man @h4r1m4u . Have a good night
@wyattwade excellent, glad to hear that; nice work! you're most welcome
sorry h4r1m4u, you can't send brownie points to yourself! :sparkles: :sparkles:
yeah. i'm just the unlucky one who is stuck with satellite internet lol
what do you mean wells?
Bootstrap wells ^^
@h4r1m4u But can't we set format=jsonp instead of adding the callback parameter?
@coderNoob you could - if the server is configured to know what to do with it. i might be wrong but i think wikipedia doesn't support format=jsonp parameter. the point i was making is that "So what the call back function does is, it prevents the statement from executing until all the data is fetched from the API call." is not quite a correct explanation of the callback parameter
@batilc1 thanks again for your help earlier if you're still on, the hint to use ajax for the wiki search page was a lifesaver