Skip to content

London | 26-ITP-May | Edina Kurdi | Sprint 3 | Quote Generator - #1426

Open
edinakurdi wants to merge 10 commits into
CodeYourFuture:mainfrom
edinakurdi:coursework/sprint-3-QuoteGen-fixed
Open

London | 26-ITP-May | Edina Kurdi | Sprint 3 | Quote Generator#1426
edinakurdi wants to merge 10 commits into
CodeYourFuture:mainfrom
edinakurdi:coursework/sprint-3-QuoteGen-fixed

Conversation

@edinakurdi

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

Implemented quote generator
Added some css

@edinakurdi edinakurdi 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 Aug 12, 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 works.

];

// call pickFromArray with the quotes array to check you get a random quote
console.log(pickFromArray(quotes)); //object gets logged into the console initially

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.

Note: After checking, it is better to remove all code not needed by the app (to keep the code clean).


// call pickFromArray with the quotes array to check you get a random quote
console.log(pickFromArray(quotes)); //object gets logged into the console initially
displayQuote(pickFromArray(quotes));

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.

Could consider placing all code that runs once on page load in a single function. For example, you could put it inside the page load callback or create a function named init() or setup() and call it once when the page loads.

This makes it easier to locate and manage all the code that runs once when the app starts.

@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. labels Aug 14, 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