Skip to content
This repository was archived by the owner on May 14, 2024. It is now read-only.

Homework week2#27

Closed
Wael-Alhomsi wants to merge 7 commits into
HackYourFuture:masterfrom
Wael-Alhomsi:Homework-week2
Closed

Homework week2#27
Wael-Alhomsi wants to merge 7 commits into
HackYourFuture:masterfrom
Wael-Alhomsi:Homework-week2

Conversation

@Wael-Alhomsi
Copy link
Copy Markdown

No description provided.

Copy link
Copy Markdown

@harditsingh harditsingh left a comment

Choose a reason for hiding this comment

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

Good job Wael! Your code looks very clean and so does your website. I have some comments though, please check below

Comment thread homework/src/index.js
}

newSelect.addEventListener('change', handleNewRepositoryRequest => {
const newUrl = 'https://api.github.com/repos/HackYourFuture/' + arrayOfObjects[event.target.value].name;
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

You should try to avoid putting URLs in multiple places

Comment thread homework/src/index.js

function startUpAndBuildSelectList(data) {

const arrayOfObjects = JSON.parse(data);
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

The 404 error is not being handled properly, the code throws an exception here

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants