See the Pen freeCodeCamp:Weather App by Eldar (@eldarm) on CodePen.
What s wrong with this code
You are declaring your url as “urlString” at line 19 but then using an undefined variable “url” at line 21.
So, this:
url: url, success: function (result) {
should be:
url: urlString, success: function (result) {