Weather App --- So, So, Close!

Here is a link to my weather app – https://codepen.io/Jeco/pen/BZRoLr?editors=0010

I had it working, but had to tweak the F-C button and now it won’t work. I keep getting 100% scan, unrecoverable syntax errors with missing ’ } ’ I have poured over this so many times and now I am not sure what to do. Any help would be greatly appreciated. Any advice on how to spot and resolve errors also would be good, so I won’t be such a noob! :slight_smile:

It shows up that error because you are missing a }); at the end of the program.Whenever you have this kind of error on codepen try this:at the line where you have begun the function there is a small arrow(near the line number) clicking on that hides the contents but shows the corresponding closing bracket if there isnt one then you are missing those.

3 Likes

Aside from the }); missing at the end of the program mentioned above, line 19 is missing a left bracket. It should read $(function{.

$(function(){}) is the proper shorthand for $(document.ready(function{}). See https://learn.jquery.com/using-jquery-core/document-ready/ for details.

Hope this helps. Good luck with your project :slight_smile:

1 Like