Skip to content

West Midlands | ITP-May-2026 | Alina Sofragiu | Sprint 3 | quotes generator#1266

Open
sofragiualina wants to merge 2 commits into
CodeYourFuture:mainfrom
sofragiualina:Quote-generator
Open

West Midlands | ITP-May-2026 | Alina Sofragiu | Sprint 3 | quotes generator#1266
sofragiualina wants to merge 2 commits into
CodeYourFuture:mainfrom
sofragiualina:Quote-generator

Conversation

@sofragiualina

Copy link
Copy Markdown

Learners, PR Template

Self checklist

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

Changelist

Complete quote generator

@sofragiualina sofragiualina 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 19, 2026
@madhuranakate

Copy link
Copy Markdown

This looks great, good work

@LonMcGregor LonMcGregor added the Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. label Jul 27, 2026

@LonMcGregor LonMcGregor left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Good, the app works. I have a small improvement suggestion

Comment thread Sprint-3/quote-generator/quotes.js Outdated
];

// call pickFromArray with the quotes array to check you get a random quote
const quoteElement = document.querySelector("#quote");

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

If you are using IDs, is there a better method to use than querySelector?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Thank you for the suggestion I’ve updated the code to use getElementById() since I’m selecting elements by their IDs

@LonMcGregor LonMcGregor removed Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. labels Jul 27, 2026
@sofragiualina sofragiualina added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Jul 27, 2026

@LonMcGregor LonMcGregor left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

great, these more focused methods are a bit more efficient

@LonMcGregor LonMcGregor 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. labels Jul 27, 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.

3 participants