Skip to content

London | 26-ITP-May | Dipa Sarker| Sprint 3 | Quote Generator App#1286

Open
Dipa-Sarker wants to merge 3 commits into
CodeYourFuture:mainfrom
Dipa-Sarker:Sprint-3/quote-generator
Open

London | 26-ITP-May | Dipa Sarker| Sprint 3 | Quote Generator App#1286
Dipa-Sarker wants to merge 3 commits into
CodeYourFuture:mainfrom
Dipa-Sarker:Sprint-3/quote-generator

Conversation

@Dipa-Sarker

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

  1. What does this PR do?
  • Updated the page title to "Quote generator app".
  • Displayed a random quote and author on page load.
  • Added a button to generate a new random quote.
  1. How was it tested?
  • Verified a quote and author appear when the page loads.
  • Clicked the button multiple times to check that quotes change correctly.

@Dipa-Sarker Dipa-Sarker added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Jul 24, 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.

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


// 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?

@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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Reviewed Volunteer to add when completing a review with trainee action still to take.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants