Skip to content

WM | 25-ITP-May | Abdullah Saleh | Sprint 3 | Quote Generator #688

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 14 commits into
base: main
Choose a base branch
from

Conversation

3bdullah-saleh
Copy link

@3bdullah-saleh 3bdullah-saleh commented Jul 23, 2025

Learners, PR Template

Self checklist

  • I have committed my files one by one, on purpose, and for a reason
  • I have titled my PR with Region | Cohort | FirstName LastName | Sprint | Assignment Title
  • I have tested my changes
  • My changes follow the style guide
  • My changes meet the requirements of this task

Changelist

Briefly explain your PR.

Questions

Ask any questions you have for your reviewer.

@3bdullah-saleh
Copy link
Author

Note: The first 6 commits were pushed accidentally and are not part of the intended changes for this pull request. Unfortunately, I couldn't remove them from the PR history.

@3bdullah-saleh 3bdullah-saleh added the Needs Review Participant to add when requesting review label Jul 23, 2025
const author = document.querySelector("#author");

// Attach a click event listener to the "New Quote" button
const newClick = document.querySelector(".btn").addEventListener("click", () => {
Copy link
Contributor

Choose a reason for hiding this comment

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

  • What's the use of variable newClick?

  • CSS class can be shared by multiple elements. It is better assign id attribute to uniquely identify an element in HTML.

Copy link
Author

Choose a reason for hiding this comment

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

Thanks for the suggestion! I've updated the button to use an id instead of a class for more precise selection and to avoid potential conflicts. Also, I removed the unnecessary newClick button

@cjyuan cjyuan added Reviewed Volunteer to add when completing a review and removed Needs Review Participant to add when requesting review labels Jul 30, 2025
@3bdullah-saleh 3bdullah-saleh added Needs Review Participant to add when requesting review and removed Reviewed Volunteer to add when completing a review labels Jul 31, 2025
@cjyuan
Copy link
Contributor

cjyuan commented Aug 1, 2025

Changes look good. Well done!

@cjyuan cjyuan added Complete Volunteer to add when work is complete and review comments have been addressed and removed Needs Review Participant to add when requesting review labels Aug 1, 2025
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 review comments have been addressed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants