Skip to content

London | 26-ITP-May | Edina Kurdi | Sprint 3 | Programmer Humour - #555

Open
edinakurdi wants to merge 8 commits into
CodeYourFuture:mainfrom
edinakurdi:feature/xkcd
Open

London | 26-ITP-May | Edina Kurdi | Sprint 3 | Programmer Humour#555
edinakurdi wants to merge 8 commits into
CodeYourFuture:mainfrom
edinakurdi:feature/xkcd

Conversation

@edinakurdi

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

  • set up html, css and js files
  • implemented fetchData using fetch and async/await
  • logged the json data to the console
  • rendered the img (wth title, and alt) into the DOM
  • added try...catch and http status error handling
  • added basic css styling with a centered teal theme

@edinakurdi edinakurdi added 🏕 Priority Mandatory This work is expected 📅 Sprint 3 Assigned during Sprint 3 of this module Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. Module-Data-Flows The name of the module. labels Aug 14, 2026
@hey-hammad hey-hammad 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 Aug 25, 2026

@hey-hammad hey-hammad 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.

Great work overall! Just one minor code-quality improvement needed. Thanks

@@ -0,0 +1,35 @@
const endpointAPI = "https://xkcd.now.sh/?comic=latest";

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

endpointAPI is used both outside and inside the function. This can be confusing, so Its best to rename the function parameter to make the code clearer and avoid shadowing.

more on shadowing here:
https://www.geeksforgeeks.org/javascript/variable-shadowing-in-javascript/

@hey-hammad hey-hammad 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 Aug 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Module-Data-Flows The name of the module. 🏕 Priority Mandatory This work is expected Reviewed Volunteer to add when completing a review with trainee action still to take. 📅 Sprint 3 Assigned during Sprint 3 of this module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants