Skip to content

Sheffield | 26-ITP-jan | Richard Frimpong | Sprint 3 | Programmer Humour#440

Open
Richiealx wants to merge 1 commit intoCodeYourFuture:mainfrom
Richiealx:feature/xkcd
Open

Sheffield | 26-ITP-jan | Richard Frimpong | Sprint 3 | Programmer Humour#440
Richiealx wants to merge 1 commit intoCodeYourFuture:mainfrom
Richiealx:feature/xkcd

Conversation

@Richiealx
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

This PR implements a simple web application that fetches and displays the latest XKCD comic using an API.

Changes made:

  • created HTML, CSS, and JavaScript files
  • fetched data from XKCD API using fetch
  • logged API response to the console
  • rendered comic image and title in the DOM
  • added a loading state while the request is in progress
  • added error handling for failed API requests

Reflection

This task helped me understand how to fetch data from an API and display it dynamically in a web page. I improved my understanding of asynchronous JavaScript and DOM manipulation.

I focused on keeping the implementation simple while meeting all the task requirements.

Note: When opening the project using file://, the browser may block the API request due to security (CORS). Running it on a local server (e.g. Live Server) resolves this.

@Richiealx Richiealx added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Apr 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant