-
-
Notifications
You must be signed in to change notification settings - Fork 93
ITP_GLASGOW_APR | HANNA_MYKYTIUK | MODULE_DATA_GROUPS | SPRINT_3 #498
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
base: main
Are you sure you want to change the base?
Conversation
Can you create separate branch for each project? You can create a new branch for each projects and then copy/paste your files from each project in this branch to their respective branches. After that, you can submit separate PR for each project in the Sprint-3 folder. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I only reviewed "Alarm Clock" and "Quote Generator" so you can start making necessary changes.
Step 3 asks for separate PR links for these two projects. So please create separate branches and PRs for these two projects, and make your changes in the new branches.
function setAlarm() {} | ||
function setAlarm() { | ||
let heading = document.getElementById("timeRemaining"); | ||
let seconds = document.getElementById("alarmSet").value; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some unusual input values that can make your app behave abnormally can still pass this check. Can you add code to sanitise them?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code works fine if a user only clicks the "Set Alarm" button once.
However, if the user enters a time and then clicks the "Set Alarm" button multiple times, the countdown clock will not display properly.
Can you fix the issue?
let quoteObj = pickFromArray(quotes); | ||
let quote = quoteObj.quote; | ||
let author = quoteObj.author; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can consider using object destructuring to simplify these three statements into one.
Learners, PR Template
Self checklist
Changelist
Briefly explain your PR.
Questions
Ask any questions you have for your reviewer.