Skip to content
This repository was archived by the owner on Jan 3, 2023. It is now read-only.

Northwest Class 4 - Musa Yuksel - JS Core 2 - Week 3#71

Open
musayuksel wants to merge 4 commits intoCodeYourFuture:mainfrom
musayuksel:main
Open

Northwest Class 4 - Musa Yuksel - JS Core 2 - Week 3#71
musayuksel wants to merge 4 commits intoCodeYourFuture:mainfrom
musayuksel:main

Conversation

@musayuksel
Copy link
Copy Markdown

Your Details

  • Your Name:
  • Your City:
  • Your Slack Name:

Homework Details

  • Module:
  • Week:

Copy link
Copy Markdown

@xtremelibasic xtremelibasic left a comment

Choose a reason for hiding this comment

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

Nice work Musa!

let input = document.getElementById('alarmSet').value;
let intervalID= setInterval(() => {
const hour =Math.floor(input/60).toString().padStart(2, "0");
//FOR MORE INFO ABOUT padStart() >>> https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/padStart
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I didn't know padStart() exists :) I am learning new things from your code as always. Great job

const flashID= setInterval(() => {
index++;
document.body.style.backgroundColor = colors[index%colors.length];
}, 100);
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[index%colors.length], this is smart

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants