Local Weather App - Toggle Button

Why is it that I’m getting the following error messages on line 53:

SyntaxError: missing ) after argument list

Any help appreciated. Thanks.

function(apiData){
    wd = apiData;
    render(apiData, farenheit);
} // here ! should be }) (unless your next line should be IN the function?

$('#toggle').click(function(){
1 Like

Yep, you’re right. Thanks!

this:

});```  doesn't do anything (the function is empty), why? 

Also if it should be IN the function then:

``` function(apiData){				
   wd = apiData;
   render(apiData, farenheit);
   $('#toggle').click(function(){
   // not doing anything?	
   		})	
   		});```

So close! Back ticks shouldn’t be on the same line as your code.

raaaaahhh… :persevere:

1 Like