Skip to content

London | 26-ITP-Sep | Hanna Bohlin | Sprint 3 | Quote generator app - #1552

Open
habohlin wants to merge 2 commits into
CodeYourFuture:mainfrom
habohlin:Quote-generator-app
Open

habohlin wants to merge 2 commits into
CodeYourFuture:mainfrom
habohlin:Quote-generator-app

Conversation

@habohlin

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

Task code

CYF-1096

Changelist

Implemented basic functionality of the quote generator and passed the pre-written test. I also updated the h1 to be more descriptive. I did not style with CSS.

@habohlin habohlin added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Nov 20, 2026
@cyf-ai-code-reviewer

Copy link
Copy Markdown

The CYF AI reviewer checked this PR did not find any obvious problems. Please wait for a volunteer to also have a look and offer their own feedback.

@hackertainment hackertainment 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 Nov 21, 2026

@hackertainment hackertainment 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 program runs correctly and no code change required. Just need to answer 1 question and I can then mark it as completed. Thank you.

Comment on lines +494 to +496
function getRandomQuote() {
return pickFromArray(quotes);
}

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I would like to know more about your design and thinking process. Just wondering why you would prefer implement this with a separate function? Thank you.

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.

Hi, yes that is a bit strange that I did that... Maybe I didn't like the name pickFromArray and wanted to call a function called getRandomQuote instead without modifying pickFromArray. And maybe I wanted to call getRandomQuote without sending in the huge array as a parameter. But in practice it does the same thing. Would you like me to remove it before you mark as complete?

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

It's alright and I understand more about your thought. Thank you.

@hackertainment hackertainment 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 Nov 21, 2026
@habohlin habohlin 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 Nov 27, 2026
@hackertainment

Copy link
Copy Markdown

Congratulation, you have completed this PR successfully.

@hackertainment hackertainment 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 Nov 27, 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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants