Skip to content

Conversation

@AhmadHmedann
Copy link

@AhmadHmedann AhmadHmedann commented Dec 6, 2025

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

update HTML & CSS and complete the code in JS file

Questions

What is the difference between generateRandomQuote with () and without brackets?
One last question: do I need to run the test file?
Thanks in advance

@github-actions
Copy link

github-actions bot commented Dec 6, 2025

Your PR's title isn't in the expected format.

Please check the expected title format, and update yours to match.

Reason: Wrong number of parts separated by |s

If this PR is not coursework, please add the NotCoursework label (and message on Slack in #cyf-curriculum or it will probably not be noticed).

If this PR needs reviewed, please add the 'Needs Review' label to this PR after you have resolved the issues listed above.

@AhmadHmedann AhmadHmedann changed the title Quote generator NW | 25-ITP-Sep | Ahmad Hmedan | Sprint 3 | quote generator app Dec 6, 2025
@github-actions
Copy link

github-actions bot commented Dec 6, 2025

Your PR description contained template fields which weren't filled in.

Check you've ticked everything in the self checklist, and that any sections which prompt you to fill in an answer are either filled in or removed.

If this PR is not coursework, please add the NotCoursework label (and message on Slack in #cyf-curriculum or it will probably not be noticed).

If this PR needs reviewed, please add the 'Needs Review' label to this PR after you have resolved the issues listed above.

1 similar comment
@github-actions
Copy link

github-actions bot commented Dec 6, 2025

Your PR description contained template fields which weren't filled in.

Check you've ticked everything in the self checklist, and that any sections which prompt you to fill in an answer are either filled in or removed.

If this PR is not coursework, please add the NotCoursework label (and message on Slack in #cyf-curriculum or it will probably not be noticed).

If this PR needs reviewed, please add the 'Needs Review' label to this PR after you have resolved the issues listed above.

@AhmadHmedann AhmadHmedann added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Dec 6, 2025
Copy link
Contributor

@cjyuan cjyuan left a comment

Choose a reason for hiding this comment

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

Code looks good.

function generateRandomQuote(){
const myObj =pickFromArray(quotes);
document.getElementById("quote-text").textContent=`${myObj.quote}`
document.getElementById("quote-author").textContent=`-${myObj.author}`
Copy link
Contributor

Choose a reason for hiding this comment

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

Could consider placing the - part (a piece of static content) in HTML or inserted via CSS.

@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 Dec 9, 2025
@cjyuan
Copy link
Contributor

cjyuan commented Dec 9, 2025

What is the difference between generateRandomQuote with () and without brackets?

Have you tried asking AI?

One last question: do I need to run the test file?

Consider it a stretch exercise.

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