Skip to content

weather app project successful#230

Open
pwarrengrovesjr wants to merge 8 commits intoprojectshft:masterfrom
pwarrengrovesjr:master
Open

weather app project successful#230
pwarrengrovesjr wants to merge 8 commits intoprojectshft:masterfrom
pwarrengrovesjr:master

Conversation

@pwarrengrovesjr
Copy link

No description provided.


const weather = {
place: data.name || null,
temp: Math.ceil(1.8 * (data.main.temp - 273.15) + 32) || null,

Choose a reason for hiding this comment

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

export this to a function and label the fixed numbers with consts so its more readable.

const renderForecast = function() {
document.querySelector('.forecast').replaceChildren();

let template = `

Choose a reason for hiding this comment

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

this could have been a loop

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