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

Paper-Manu Ponce #67

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Paper-Manu Ponce #67

wants to merge 1 commit into from

Conversation

kmanuponce
Copy link

No description provided.

Copy link

@kaidamasaki kaidamasaki left a comment

Choose a reason for hiding this comment

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

Good job!

There were a few small things I commented on but everything looks solid. Well done. 😃

PS: Your background is beautiful!

temperature += 1;
tempValue.innerHTML = temperature;
if (temperature >= 80) {
tempValue.className = "red";

Choose a reason for hiding this comment

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

You should avoid class names like yellow and instead use something like warm or hot.

A class name should describe what the thing means, not its effect.

The example will be updated to reflect this for next cohort.

let skyElement = document.getElementById("sky")

let increaseTempControl = document.getElementById("increaseTempControl");
increaseTempControl.addEventListener("click", function () {

Choose a reason for hiding this comment

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

You repeat a lot of logic between increaseTempControl and decreaseTempControl a helper function could DRY up your 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