Skip to content

Audrey Clark's Weather App Eval#209

Open
audreyclarkdev wants to merge 7 commits intoprojectshft:masterfrom
audreyclarkdev:master
Open

Audrey Clark's Weather App Eval#209
audreyclarkdev wants to merge 7 commits intoprojectshft:masterfrom
audreyclarkdev:master

Conversation

@audreyclarkdev
Copy link

Finally got everything working well and styled the way I wanted with Bootstrap 5.

displayForecast(processForecastData(forecastData.list));
}
catch(error) {
console.error('Error fetching weather data:', error);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would also display the error to the user.

}
}
catch(error) {
alert('Not a valid city. Please try again.');

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

great, this is the only error you may have? I think there can be more

Comment on lines +90 to +92
<p class="fs-3 fw-bold">${city}</p>
<p class="fs-3 fw-bold">${Math.round(temp)}&deg;F</p>
<p class="fs-4 fst-italic text-capitalize">${description}</p>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

great use of concatenation

const result = [];
for (const day in dailyData) {
const temps = dailyData[day].temps;
const avgTemp = temps.reduce((sum, t) => sum + t, 0) / temps.length;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

extract to a new function for readability

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants