Getting an empty JSON from wikipedia API

Here is my javascript code:
var value;

var url=“";

The problem is that when I write the getJSON function outside the click function then codepen is receiving data but after nesting the click function and getJSON the API is not responding.In the browser console there is no error so I am finding it hard to debug the code.
Here is the link to my pen:

Thank you SkyC.I was really struggling with that.
I have one more question.I observed that the position of my search bar and the search button to its side change slightly in different browsers.Do you have any idea of how to keep the position same?
Thanks for the reply :slight_smile: