Skip to content

London | No Cohort | Daniel Wagner-Hall | Sprint 3 | Quote Generator - #1477

Closed
illicitestonion wants to merge 3 commits into
CodeYourFuture:mainfrom
illicitestonion:even-more-fixed
Closed

illicitestonion wants to merge 3 commits into
CodeYourFuture:mainfrom
illicitestonion:even-more-fixed

Conversation

@illicitestonion

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

Implements quote generator app.

@illicitestonion illicitestonion added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Oct 8, 2026
Comment on lines +1 to +10
const showNewQuote = () => {
const {quote, author} = pickFromArray(quotes);
document.getElementById("quote").innerText = quote;
document.getElementById("author").innerText = author;
};

document.addEventListener("DOMContentLoaded", showNewQuote);

document.querySelector("button").addEventListener("click", showNewQuote);

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 don’t see any trainee-written comments in this change set, only code. Since the functions and event listeners here are already quite clear (showNewQuote and the click handler are self-explanatory), this is a nice example of code that doesn’t need extra comments at all. As you keep working, you might ask yourself: whenever you feel the urge to add a comment, is there a way to make the code or naming so clear that the comment becomes unnecessary? That habit will keep your codebase easier to read and maintain.

To "like" or "dislike" this comment, please follow this link

@cyf-ai-code-reviewer cyf-ai-code-reviewer Bot 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 Oct 8, 2026
@cyf-ai-code-reviewer

Copy link
Copy Markdown

The CYF AI review has left comments. It will only review a PR one time. When you have addressed these comments, please request review again and a volunteer will take a look.

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