Skip to content

London | 26-ITP-May | Chinwe Chukwuma | Sprint 3 | Quote generator - #1355

Open
ChinweP wants to merge 18 commits into
CodeYourFuture:mainfrom
ChinweP:module-data-groups/sprint-3/quote-generator
Open

London | 26-ITP-May | Chinwe Chukwuma | Sprint 3 | Quote generator#1355
ChinweP wants to merge 18 commits into
CodeYourFuture:mainfrom
ChinweP:module-data-groups/sprint-3/quote-generator

Conversation

@ChinweP

@ChinweP ChinweP commented Jul 31, 2026

Copy link
Copy Markdown

Learners, PR Template

Self checklist

  • I have titled my PR with Region | Cohort | FirstName LastName | Sprint | Assignment Title
  • My changes meet the requirements of the task
  • I have tested my changes
  • My changes follow the style guide

Changelist

Sprint 3/Quote generator completed following readme instructions

@github-actions

This comment has been minimized.

@ChinweP ChinweP added 📅 Sprint 3 Assigned during Sprint 3 of this module Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. Module-Data-Groups The name of the module. labels Jul 31, 2026
@github-actions

This comment has been minimized.

@github-actions github-actions Bot removed the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Jul 31, 2026
@github-actions

This comment has been minimized.

1 similar comment
@github-actions

This comment has been minimized.

@ChinweP ChinweP added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Aug 1, 2026
@github-actions

This comment has been minimized.

@github-actions github-actions Bot removed the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Aug 1, 2026
@ChinweP ChinweP added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Aug 1, 2026

@cjyuan cjyuan left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code could use some minor improvements but it is well written.

Comment thread Sprint-3/quote-generator/script.js Outdated
Comment thread Sprint-3/quote-generator/script.js Outdated
Comment on lines +15 to +17
newQuoteBtn.addEventListener("click", () => {
displayRandomQuote();
});

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code that assign event listener once could also be placed inside the onload callback function.

@cjyuan cjyuan added Reviewed Volunteer to add when completing a review with trainee action still to take. and removed Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. labels Aug 6, 2026
@ChinweP ChinweP added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Aug 7, 2026
@ChinweP
ChinweP requested a review from cjyuan August 7, 2026 19:39

@cjyuan cjyuan left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Changes look good.

autoToggle.addEventListener("change", () => {
if (autoToggle.checked) {
autoStatus.innerText = "auto-play:ON";
intervalId = setInterval(displayRandomQuote, AUTO_PLAY_INTERVAL); // 5 seconds for testing

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

If needed, this comment would be better placed where the variable is declared.

@cjyuan cjyuan added Complete Volunteer to add when work is complete and all review comments have been addressed. and removed Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. Reviewed Volunteer to add when completing a review with trainee action still to take. labels Aug 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Complete Volunteer to add when work is complete and all review comments have been addressed. Module-Data-Groups The name of the module. 📅 Sprint 3 Assigned during Sprint 3 of this module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants