Skip to content

London | 26-ATP-Jan | Boualem Larbi Djebbour | Sprint 3 | Quote generator#1200

Open
djebsoft wants to merge 12 commits intoCodeYourFuture:mainfrom
djebsoft:quote-generator
Open

London | 26-ATP-Jan | Boualem Larbi Djebbour | Sprint 3 | Quote generator#1200
djebsoft wants to merge 12 commits intoCodeYourFuture:mainfrom
djebsoft:quote-generator

Conversation

@djebsoft
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

creating a quote generator application

Questions

@djebsoft djebsoft added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Apr 15, 2026
Comment thread Sprint-3/quote-generator/quotes.js Outdated
Comment thread Sprint-3/quote-generator/quotes.js Outdated
Comment thread Sprint-3/quote-generator/quotes.js Outdated
@@ -1,3 +1,10 @@
function main() {
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.

Can consider rename this function to better match the task it is doing.

Comment thread Sprint-3/quote-generator/index.html Outdated
@cjyuan cjyuan 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. labels Apr 16, 2026
@djebsoft djebsoft 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 Apr 16, 2026
const randomQuote = pickFromArray(quotes);
document.querySelector("#quote").innerText = randomQuote.quote;
document.querySelector("#author").innerText = randomQuote.author;
document.getElementById("new-quote").addEventListener("click", setup);
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.

Line 5 should only be executed once on page load instead of being called every time when the button is clicked.

@cjyuan cjyuan 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. labels Apr 16, 2026
@djebsoft djebsoft 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 Apr 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants