Hi everyone. I can’t seem to figure out what is happening with one of my student’s random forecaster Make assignments. I’ve compared it with the teacher example provided, and other student projects that are working properly, and I’m clearly missing something. Once you click the Get Forecast button, it gives an error message on line 35, and then continues with the error messages with each consecutive line each time you click the button. [CLICK HERE] for the assignment. Keep in mind if you Remix it I believe you’ll need to import the Daily Weather data table. Any help is greatly appreciated. Thanks!
Here are some problems that I noticed
- The filteredLists should be declared before the filtered function call.
- the for loop in the filter method should not end with a semicolon. It needs curly braces that begin before the if statement and ends after the curly brace that ends the if statement.
- filteredforecast list is not being updated in the filter method.
I hope fixing these will help the student move forward.