Problem with Local Weather App

I am currently stuck on API calling int local weather app.Here is my code
The problem that I am facing is that my code is not able to call the API.When I looked in the browser console for errors it is saying that “$ in the getJSON is undefined”.
I even tried to run it through a CORS but my code still fails.
I am really stuck at this point and your help would be appreciated.

you use jquery but dont add link to it see settings> js> quick add , jquery

Thanks man.It finally worked out.