Skip to content

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

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

Conversation

HannaOdud
Copy link

Learners, PR Template

Self checklist

  • [ x] I have committed my files one by one, on purpose, and for a reason
  • [x ] I have titled my PR with COHORT_NAME | FIRST_NAME LAST_NAME | REPO_NAME | WEEK
  • [ x] I have tested my changes
  • [x ] My changes follow the style guide
  • [ x] My changes meet the requirements of this task

Changelist

Briefly explain your PR.

Questions

Ask any questions you have for your reviewer.

@HannaOdud HannaOdud added the Needs Review Participant to add when requesting review label Apr 14, 2025
@cjyuan
Copy link

cjyuan commented Apr 15, 2025

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.

@cjyuan cjyuan added 👀 Review Git Changes requested to do with Git and removed 👀 Review Git Changes requested to do with Git labels Apr 15, 2025
Copy link

@cjyuan cjyuan left a 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;
Copy link

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?

Copy link

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?

Comment on lines +2 to +4
let quoteObj = pickFromArray(quotes);
let quote = quoteObj.quote;
let author = quoteObj.author;
Copy link

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.

@cjyuan cjyuan added Reviewed Volunteer to add when completing a review and removed Needs Review Participant to add when requesting review labels Apr 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
👀 Review Git Changes requested to do with Git Reviewed Volunteer to add when completing a review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants