Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cedar - Laurel #59

Open
wants to merge 9 commits into
base: main
Choose a base branch
from
Open

Conversation

paperbackwriter2
Copy link

Weather Report submission

Copy link

@beccaelenzil beccaelenzil left a comment

Choose a reason for hiding this comment

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

Great work on your first javascript in the web project. Your code is very clear and readable and makes great use of a helper functions. Nice work!

</head>
<body>

<h1 id='display-city'>Seattle</h1>
<div id=pretty-picture>

Choose a reason for hiding this comment

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

Minor note: you might consider making the div for each of the sections a section element

@@ -0,0 +1,240 @@
const state = {

Choose a reason for hiding this comment

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

Great use of state object for temp and color class. You might consider making a separate object to hold the constants

}
}

// does it make sense to use state this way?

Choose a reason for hiding this comment

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

state is generally used to hold the current state of the app, so data that might change


// HELPER FUNCTIONS

const styleColorAndLandscape = () => {

Choose a reason for hiding this comment

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

Great work encapsulating this different functionality in their own functions.




// this function is responsible for changing two things in one function...

Choose a reason for hiding this comment

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

Nice work refactoring and DRYing up your code! Remember to remove commented code for the final code.

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