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

added a method update clocks #26

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

aruna79
Copy link

@aruna79 aruna79 commented May 21, 2018

Digital Clock

Congratulations! You're submitting your assignment!

Comprehension Questions

Question Answer
What does jQuery give you that JavaScript doesn't?
Describe what the following jQuery selector would give you: $('#list')
What are three major things you learned about JavaScript this week?


}

showTime();

Choose a reason for hiding this comment

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

This should be inside $(document).ready otherwise it's not guaranteed to be executed after the document loads.

s = (s < 10) ? "0" + s : s;

let time = h + ":" + m + ":" + s + " " + session;
document.getElementById("clock").innerText = time;

Choose a reason for hiding this comment

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

This is an exercise on jQuery, why not use jQuery???

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