Skip to content

London | 26-ITP-Jan | Maryanne Mosonik | Sprint 3 | Quote Generator - #1123

Closed
Maryanne-K wants to merge 3 commits into
CodeYourFuture:mainfrom
Maryanne-K:Quote_Generator_App
Closed

London | 26-ITP-Jan | Maryanne Mosonik | Sprint 3 | Quote Generator#1123
Maryanne-K wants to merge 3 commits into
CodeYourFuture:mainfrom
Maryanne-K:Quote_Generator_App

Conversation

@Maryanne-K

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

Made changes to the Quote Generator files to show random quotes.

@Maryanne-K Maryanne-K added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Mar 27, 2026
@Maryanne-K
Maryanne-K marked this pull request as ready for review March 27, 2026 22:01
@Luro91 Luro91 added Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. and removed Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. labels Apr 6, 2026

@Luro91 Luro91 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.

The code works correctly. Take a look at the code formatting

Comment thread Sprint-3/quote-generator/quotes.js Outdated
Comment on lines +494 to +502
function getRandomQuote() {
const randomQuote = pickFromArray(quotes);

document.getElementById("quote").textContent = randomQuote.quote;
document.getElementById("author").textContent = randomQuote.author;
}
getRandomQuote();

document.getElementById("new-quote").addEventListener("click", getRandomQuote); No newline at end of file

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

What tools could you use to automatically format your code?

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.

@Luro91 I have formatted the document with Prettier.

@Luro91 Luro91 added Reviewed Volunteer to add when completing a review with trainee action still to take. and removed Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. labels Apr 6, 2026
@Maryanne-K Maryanne-K added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Apr 16, 2026

@Luro91 Luro91 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.

Well done the code works as expected.

A note on your commit message "Refactor getRandomQuote function for improved readability"

Refactoring usually refers to changing the logic of the code (e.g. adding helper functions, changing conditions...)
If you just change the format you can use a commit messsage like "Format code with prettier" or "Improve code formatting"

@Luro91 Luro91 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 Apr 17, 2026
@illicitonion

Copy link
Copy Markdown
Member

Closing PR because the January ITP run has finished. Feel free to re-open if you're still working on it.

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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants