Skip to content

Glasgow | 26-ITP-May | Niangh Ciang | Sprint 3 | Quote Generator - #1258

Open
Niangh-Ciang wants to merge 6 commits into
CodeYourFuture:mainfrom
Niangh-Ciang:quote-generator
Open

Glasgow | 26-ITP-May | Niangh Ciang | Sprint 3 | Quote Generator#1258
Niangh-Ciang wants to merge 6 commits into
CodeYourFuture:mainfrom
Niangh-Ciang:quote-generator

Conversation

@Niangh-Ciang

Copy link
Copy Markdown

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

Complete quote generator with button interaction and auto‑play feature

@Niangh-Ciang Niangh-Ciang 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 18, 2026
@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.

Great work, there's just one part where I have a suggestion for an improvement

Comment thread Sprint-3/quote-generator/quotes.js Outdated
// call pickFromArray with the quotes array to check you get a random quote
function showRandomQuote() {
const randomQuote = pickFromArray(quotes);
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.

Yes, using getElementById is better for ID selectors.

@LonMcGregor LonMcGregor 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. Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. labels Jul 27, 2026
@Niangh-Ciang Niangh-Ciang added Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. and removed Reviewed Volunteer to add when completing a review with trainee action still to take. labels Jul 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Module-Data-Groups The name of the module. Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. 📅 Sprint 3 Assigned during Sprint 3 of this module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants